/* Authentication Pages Styles (Login & Register) */

.auth-notification {
    padding: 14px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    border: 1px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-error {
    background-color: #FEE2E2;
    border-color: #FCA5A5;
    color: #991B1B;
}

.notification-error i {
    color: #DC2626;
}

.notification-success {
    background-color: #D1FAE5;
    border-color: #6EE7B7;
    color: #065F46;
}

.notification-success i {
    color: #059669;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.form-group label .required {
    color: #DC2626;
}

.form-group input:not([type="checkbox"]) {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.15s ease;
}

.form-group input:not([type="checkbox"]):focus {
    outline: none;
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-group input::placeholder {
    color: #9CA3AF;
}

.form-help {
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
    display: block;
}

.password-strength {
    margin-top: 8px;
    font-size: 12px;
    color: #6B7280;
}

.password-strength-bar {
    height: 3px;
    background: #E5E7EB;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    width: 0%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-fill.weak {
    width: 33%;
    background: #DC2626;
}

.password-strength-fill.medium {
    width: 66%;
    background: #F59E0B;
}

.password-strength-fill.strong {
    width: 100%;
    background: #059669;
}

.btn-primary {
    width: 100%;
    padding: 12px 24px;
    background: #0F172A;
    border: none;
    border-radius: 8px;
    color: #FFFFFF;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.btn-primary:hover {
    background: #1E293B;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #D1D5DB;
    cursor: not-allowed;
    transform: none;
}

.register-header {
    margin-bottom: 32px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 480px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

.dob-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #6B7280;
    margin-top: 6px;
}

.dob-hint i {
    font-size: 13px;
    color: #9CA3AF;
}

.register-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.register-header p {
    font-size: 14px;
    color: #6B7280;
}

.register-header p a {
    color: #0F172A;
    font-weight: 500;
    text-decoration: none;
}

.register-header p a:hover {
    text-decoration: underline;
}

.register-section {
    max-width: 480px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.register-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-section {
    max-width: 480px;
    margin: 60px auto 80px;
    padding: 0 20px;
}

.login-card {
    background: #FFFFFF;
    border: 1px solid #E5E7EB;
    border-radius: 16px;
    padding: 48px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    animation: fadeInUp 0.4s ease;
}

.login-header {
    margin-bottom: 32px;
}

.login-header h1 {
    font-size: 28px;
    font-weight: 600;
    color: #111827;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    font-size: 14px;
    color: #6B7280;
}

.login-header p a {
    color: #0F172A;
    font-weight: 500;
    text-decoration: none;
}

.login-header p a:hover {
    text-decoration: underline;
}

.verification-success {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.verification-success h2 {
    font-size: 24px;
    color: #0F172A;
    margin-bottom: 12px;
}

.success-message {
    font-size: 16px;
    color: #64748B;
    margin-bottom: 16px;
}

.success-info {
    background: #F1F5F9;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    margin-bottom: 24px;
}

.dev-verification-link {
    background: #FEF3C7;
    border: 1px solid #F59E0B;
    border-radius: 12px;
    padding: 20px;
    margin: 24px 0;
    text-align: left;
}

.dev-verification-link p {
    font-size: 14px;
    color: #92400E;
    margin-bottom: 12px;
}

.btn-verify {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #10B981;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-verify:hover {
    background: #059669;
    transform: translateY(-1px);
}

.success-actions {
    margin-top: 24px;
}

.success-actions .btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* OTP code input */
.otp-group {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 4px 0 8px;
}

.otp-input {
    width: 50px;
    height: 58px;
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    border: 1.5px solid #D1D5DB;
    border-radius: 10px;
    background: #FFFFFF;
    color: #0F172A;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    font-family: 'Plus Jakarta Sans', sans-serif;
    caret-color: transparent;
}

.otp-input:focus {
    outline: none;
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
    background: #FAFAFA;
}

.otp-input:not(:placeholder-shown) {
    border-color: #0F172A;
    background: #F8FAFC;
}

/* Success state */
.otp-success-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, #10B981, #059669);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.otp-success-icon i {
    font-size: 36px;
    color: white;
}

.otp-title {
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    margin: 0 0 10px;
}

.otp-subtitle {
    font-size: 15px;
    color: #64748B;
    margin: 0 0 24px;
    line-height: 1.6;
}

/* Resend link */
.resend-link {
    font-size: 13px;
    color: #0F172A;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
    margin-left: 4px;
}

.resend-link:hover {
    color: #1E293B;
}

/* Secondary outline button */
.btn-secondary-outline {
    width: 100%;
    padding: 11px 24px;
    background: transparent;
    border: 1.5px solid #D1D5DB;
    border-radius: 8px;
    color: #374151;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    font-family: 'Plus Jakarta Sans', sans-serif;
    transition: all 0.15s ease;
}

.btn-secondary-outline:hover {
    border-color: #0F172A;
    color: #0F172A;
}

/* OTP email input (no-email state) */
.otp-email-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    box-sizing: border-box;
    transition: all 0.15s ease;
}

.otp-email-input:focus {
    outline: none;
    border-color: #0F172A;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

@media (max-width: 400px) {
    .otp-input {
        width: 42px;
        height: 50px;
        font-size: 22px;
    }
    .otp-group {
        gap: 6px;
    }
}

/* Lien retour connexion */
.back-to-login {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.back-to-login:hover {
    color: #0F172A;
}

/* Mot de passe oublié */
.forgot-password {
    text-align: right;
    margin: -8px 0 20px;
}

.forgot-password a {
    font-size: 13px;
    color: #6B7280;
    text-decoration: none;
    transition: color 0.15s ease;
}

.forgot-password a:hover {
    color: #0F172A;
    text-decoration: underline;
}

/* Checkboxes CGU / commerciale */
.checkboxes-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.form-group .checkbox-label {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    font-size: 13px;
    color: #374151;
    line-height: 1.5;
    margin-bottom: 0;
    font-weight: normal;
}

.form-group .checkbox-label input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    min-width: 18px;
    max-width: 18px;
    border: 1.5px solid #D1D5DB;
    border-radius: 5px;
    background: #FFFFFF;
    cursor: pointer;
    margin-top: 2px;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
    padding: 0;
    flex-shrink: 0;
}

.form-group .checkbox-label input[type="checkbox"]:checked {
    background: #0F172A;
    border-color: #0F172A;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='9' viewBox='0 0 11 9'%3E%3Cpath d='M1 4l3 3 6-6' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
}

.form-group .checkbox-label input[type="checkbox"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.1);
}

.form-group .checkbox-label input[type="checkbox"]:hover:not(:checked) {
    border-color: #9CA3AF;
}

.form-group .checkbox-label span {
    flex: 1;
    min-width: 0;
}

.form-group .checkbox-label span .required {
    color: #DC2626;
}

.form-group .checkbox-label span a {
    color: #0F172A;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.form-group .checkbox-label span a:hover {
    color: #1E293B;
}

@media (max-width: 768px) {
    .register-card {
        padding: 32px 24px;
    }

    .login-card {
        padding: 32px 24px;
    }

    .register-section {
        margin: 40px auto 60px;
    }

    .login-section {
        margin: 40px auto 60px;
    }

    .register-header h1 {
        font-size: 24px;
    }

    .login-header h1 {
        font-size: 24px;
    }
}
