/* ============================================
   HOPWISE AUTHENTICATION STYLES
   Based on hopwise-auth-screens.html design
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Nunito', sans-serif;
    background: url('../assets/background/sticker_background_v3.png') center/cover no-repeat fixed;
    background-color: #87CEEB;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

/* Auth Container */
.auth-container {
    background: #FFFFFF;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 48px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

/* Logo Section */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFA500);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 12px;
    box-shadow: 0 6px 18px rgba(255, 107, 107, 0.3);
    overflow: hidden;
}

.auth-logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-logo-text {
    font-size: 28px;
    font-weight: 900;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Header */
.auth-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.auth-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    font-size: 14px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    text-decoration: none;
    font-family: 'Nunito', sans-serif;
}

.auth-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.auth-back .back-arrow {
    font-size: 16px;
    line-height: 1;
}

.auth-home {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(255, 107, 107, 0.25);
    text-decoration: none;
}

.auth-home:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.35);
}

/* Title */
.auth-title {
    font-size: 32px;
    font-weight: 900;
    color: #1E1E2E;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.auth-subtitle {
    font-size: 15px;
    font-weight: 600;
    color: #6C757D;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Form */
.auth-form {
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #1E1E2E;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #E9ECEF;
    border-radius: 14px;
    font-size: 15px;
    font-family: 'Nunito', sans-serif;
    font-weight: 600;
    transition: all 0.2s;
    background: #FFFFFF;
}

.form-input:focus {
    outline: none;
    border-color: #FF8E53;
    box-shadow: 0 0 0 4px rgba(255, 142, 83, 0.1);
}

.form-input::placeholder {
    color: #ADB5BD;
    font-weight: 500;
}

.form-input.error {
    border-color: #EF4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.form-input.success {
    border-color: #10B981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.form-error {
    font-size: 13px;
    color: #EF4444;
    margin-top: 6px;
    display: none;
    align-items: center;
    gap: 4px;
}

.form-error.show {
    display: flex;
}

.form-hint {
    font-size: 12px;
    color: #6C757D;
    margin-top: 6px;
}

/* Password Input with Toggle */
.password-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #6C757D;
    display: flex;
    align-items: center;
    transition: color 0.2s;
}

.password-toggle:hover {
    color: #1E1E2E;
}

/* Password Strength */
.password-strength {
    margin-top: 10px;
}

.strength-bar {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}

.strength-segment {
    flex: 1;
    height: 4px;
    background: #E9ECEF;
    border-radius: 2px;
    transition: background 0.3s;
}

.strength-segment.weak { background: #EF4444; }
.strength-segment.fair { background: #F59E0B; }
.strength-segment.good { background: #10B981; }
.strength-segment.strong { background: #10B981; }

.strength-text {
    font-size: 12px;
    font-weight: 700;
}

.strength-text.weak { color: #EF4444; }
.strength-text.fair { color: #F59E0B; }
.strength-text.good { color: #10B981; }
.strength-text.strong { color: #10B981; }

/* Buttons */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 16px 24px;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    font-family: 'Nunito', sans-serif;
    transition: all 0.2s;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53, #FFA500);
    color: white;
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.35), 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.45), 0 4px 8px rgba(0, 0, 0, 0.15);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-secondary {
    background: #F4F4F5;
    color: #1E1E2E;
}

.btn-secondary:hover {
    background: #E9ECEF;
}

.btn-outline {
    background: transparent;
    border: 2px solid #E9ECEF;
    color: #6C757D;
}

.btn-outline:hover {
    border-color: #D1D5DB;
    background: #F9FAFB;
}

.btn-google {
    background: #FFFFFF;
    border: 2px solid #E9ECEF;
    color: #1E1E2E;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.05);
    position: relative;
}

.btn-google:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12), 0 3px 6px rgba(0, 0, 0, 0.08);
}

.btn-apple {
    background: linear-gradient(135deg, #000000, #1a1a1a);
    color: #FFFFFF;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
}

.btn-apple::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 14px;
    padding: 2px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.btn-apple:hover {
    background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4), 0 4px 8px rgba(0, 0, 0, 0.25);
}

.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* OAuth Buttons */
.oauth-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #E9ECEF;
}

.auth-divider span {
    font-size: 12px;
    font-weight: 700;
    color: #ADB5BD;
    text-transform: uppercase;
}

/* Links */
.auth-link {
    color: #FF8E53;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-link:hover {
    color: #FF6B6B;
}

.auth-footer {
    text-align: center;
    font-size: 14px;
    color: #6C757D;
}

/* Alerts */
.alert {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #FEE2E2;
    color: #DC2626;
    border: 1px solid #FCA5A5;
}

.alert-success {
    background: #D1FAE5;
    color: #059669;
    border: 1px solid #6EE7B7;
}

.alert-info {
    background: #DBEAFE;
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

/* Success States */
.success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 40px 0;
}

.success-icon {
    width: 100px;
    height: 100px;
    background: #D1FAE5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 24px;
}

.error-icon {
    width: 100px;
    height: 100px;
    background: #FEE2E2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 50px;
    margin-bottom: 24px;
}

.success-title {
    font-size: 24px;
    font-weight: 900;
    color: #1E1E2E;
    margin-bottom: 12px;
}

.success-text {
    font-size: 15px;
    color: #6C757D;
    line-height: 1.6;
    margin-bottom: 32px;
}

.email-highlight {
    font-weight: 700;
    color: #1E1E2E;
}

/* Resend Section */
.resend-section {
    text-align: center;
    margin-top: 24px;
}

.resend-text {
    font-size: 14px;
    color: #6C757D;
    margin-bottom: 8px;
}

.resend-timer {
    font-size: 13px;
    color: #ADB5BD;
    margin-top: 4px;
}

/* Responsive */
@media (max-width: 480px) {
    .auth-container {
        padding: 36px 24px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-subtitle {
        font-size: 14px;
    }
}
