/* Auth styles – shared by connexion.html & inscription.html */

.auth-section {
    padding: 112px 0;
    background:
        radial-gradient(circle at top left, rgba(200, 165, 96, 0.16), transparent 36%),
        linear-gradient(180deg, #242424 0%, #1d1d1d 45%, #171717 100%);
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.auth-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(200, 165, 96, 0.18), transparent 55%);
    opacity: 0.75;
}

.auth-container {
    position: relative;
    z-index: 1;
    width: min(1020px, 95%);
    display: flex;
    border-radius: 34px;
    overflow: hidden;
    border: 1px solid rgba(213, 193, 137, 0.14);
    box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
    background: rgba(18, 18, 18, 0.78);
    backdrop-filter: blur(12px);
}

.auth-image {
    flex: 0 0 42%;
    background: linear-gradient(160deg, rgba(200, 165, 96, 0.14), rgba(22, 22, 22, 0.68)),
                url('https://images.unsplash.com/photo-1517817748493-49ec54a32463?auto=format&fit=crop&w=700&q=80') center/cover;
    position: relative;
}

.auth-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(200deg, rgba(27, 27, 27, 0.1), rgba(27, 27, 27, 0.65));
}

.auth-forms {
    flex: 1;
    background: linear-gradient(180deg, rgba(42, 42, 42, 0.98), rgba(26, 26, 26, 0.98));
    padding: 56px 50px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-lead {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-lead h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2.2rem, 3vw, 2.9rem);
    color: #fff3de;
}

.auth-lead p {
    color: rgba(245, 245, 245, 0.76);
    font-size: 0.95rem;
    max-width: 540px;
    margin: 0 auto;
}

.auth-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;
    padding: 8px;
    border-bottom: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: inset 0 0 0 1px rgba(213, 193, 137, 0.1);
}

.auth-tab {
    padding: 13px 22px;
    border: none;
    background: transparent;
    color: rgba(245, 245, 245, 0.6);
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    text-decoration: none;
    border-radius: 999px;
    transition: var(--transition);
}

.auth-tab:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
}

.auth-tab.active {
    background: linear-gradient(135deg, #b99552 0%, #d9c793 55%, #f1e5c4 100%);
    color: var(--anthracite);
    box-shadow: 0 14px 30px rgba(200, 165, 96, 0.24);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.auth-form h2 {
    font-family: 'Playfair Display', serif;
    color: #fff0d2;
    margin-top: 0;
    margin-bottom: 30px;
    text-align: center;
    font-size: 1.6rem;
}

.auth-separator {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 28px 0;
    color: rgba(245, 245, 245, 0.55);
    font-size: 0.9rem;
    gap: 12px;
}

.auth-separator::before,
.auth-separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(213, 193, 137, 0.14);
    color: rgba(245, 245, 245, 0.8);
    font-size: 1.1rem;
    transition: var(--transition);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.social-btn:hover {
    background: rgba(213, 193, 137, 0.12);
    color: #fff3d9;
    border-color: rgba(213, 193, 137, 0.4);
}

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

.auth-section .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: rgba(245, 245, 245, 0.88);
}

.auth-section .form-group input,
.auth-section .form-group textarea,
.auth-section .form-group select {
    width: 100%;
    padding: 15px 16px;
    border-radius: 16px;
    border: 1px solid rgba(213, 193, 137, 0.14);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(245, 245, 245, 0.92);
    transition: var(--transition);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-section .form-group input::placeholder,
.auth-section .form-group textarea::placeholder {
    color: rgba(245, 245, 245, 0.45);
}

.auth-section .form-group input:focus,
.auth-section .form-group textarea:focus,
.auth-section .form-group select:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(200, 165, 96, 0.14);
}

.toggle-password {
    position: relative;
}

.toggle-password input {
    padding-right: 46px;
}

.toggle-password button {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(245, 245, 245, 0.6);
}

.auth-section .form-group.inline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.auth-section .form-group.inline input {
    width: auto;
    accent-color: var(--gold);
}

.provider-options {
    display: flex;
    gap: 16px;
}

.provider-option {
    flex: 1;
    border: 1px solid rgba(213, 193, 137, 0.14);
    border-radius: 20px;
    padding: 18px;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    background: rgba(255, 255, 255, 0.04);
}

.provider-option:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.provider-option.active {
    border-color: var(--gold);
    background: rgba(200, 165, 96, 0.16);
    box-shadow: 0 12px 26px rgba(200, 165, 96, 0.12);
}

.provider-option-title {
    font-weight: 600;
    margin-bottom: 6px;
}

.provider-option-desc {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.55);
}

.auth-section .form-actions {
    margin-top: 24px;
    text-align: center;
}

.auth-section .form-actions .btn {
    width: 100%;
    min-height: 54px;
}

.form-footer {
    text-align: center;
    margin-top: 24px;
    color: rgba(245, 245, 245, 0.64);
}

.form-footer a {
    color: var(--gold-soft);
}

.form-footer a:hover {
    text-decoration: underline;
}

.auth-section .form-error {
    color: #f79a8b;
    margin-top: 10px;
    font-size: 0.95rem;
    background: rgba(183, 69, 61, 0.14);
    border: 1px solid rgba(247, 154, 139, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
}

/* ── Inscription progressive ── */

.inscription-container {
    position: relative;
    z-index: 1;
    width: min(960px, 95%);
    background: rgba(22, 22, 22, 0.75);
    border-radius: calc(var(--radius) + 6px);
    backdrop-filter: blur(12px);
    box-shadow: 0 35px 80px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 48px 40px 56px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.inscription-container .auth-lead p {
    font-size: 1rem;
    max-width: 640px;
}

.progress-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    margin-bottom: 36px;
}

.progress-bar::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.progress-bar-fill {
    position: absolute;
    top: 20px;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #E1CF9A);
    transition: width 0.4s ease;
    z-index: 1;
}

.progress-step {
    position: relative;
    z-index: 2;
    text-align: center;
    flex: 1;
    color: rgba(245, 245, 245, 0.6);
}

.progress-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    background: rgba(0, 0, 0, 0.25);
    font-weight: 600;
    transition: all 0.3s ease;
    color: rgba(245, 245, 245, 0.75);
}

.progress-step.active .progress-circle {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--anthracite);
    transform: scale(1.05);
}

.progress-step.completed .progress-circle {
    border-color: #27ae60;
    background: #27ae60;
    color: white;
}

.progress-label {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.65);
    font-weight: 500;
}

.progress-step.active .progress-label {
    color: var(--gold);
}

.form-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.form-step.active {
    display: block;
}

.step-header {
    text-align: center;
    margin-bottom: 28px;
}

.step-header h2 {
    font-family: 'Playfair Display', serif;
    color: var(--gold-soft);
    margin-bottom: 10px;
}

.step-header p {
    color: rgba(245, 245, 245, 0.65);
    font-size: 0.95rem;
}

.password-strength {
    margin-top: 8px;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 2px;
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.password-strength-bar.weak { width: 33%; background: #e74c3c; }
.password-strength-bar.medium { width: 66%; background: #f39c12; }
.password-strength-bar.strong { width: 100%; background: #27ae60; }

.password-hint {
    font-size: 0.85rem;
    color: rgba(245, 245, 245, 0.55);
    margin-top: 5px;
}

.step-actions {
    display: flex;
    gap: 16px;
    margin-top: 28px;
}

.btn-prev,
.btn-next {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-prev {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(245, 245, 245, 0.8);
}

.btn-prev:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--gold);
    border-color: var(--gold);
}

.btn-next {
    background: linear-gradient(135deg, var(--gold), #E1CF9A);
    color: var(--anthracite);
    box-shadow: 0 12px 25px rgba(200, 165, 96, 0.35);
}

.btn-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(200, 165, 96, 0.45);
}

.btn-next:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.notification-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.25);
    color: rgba(245, 245, 245, 0.82);
    transition: var(--transition);
}

.notification-option:hover {
    border-color: var(--gold);
    background: rgba(200, 165, 96, 0.12);
}

.notification-option input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: var(--gold);
}

.notification-option-desc {
    color: rgba(245, 245, 245, 0.6);
}

.skip-link {
    display: block;
    text-align: center;
    margin-top: 20px;
    color: rgba(245, 245, 245, 0.6);
    text-decoration: none;
    font-size: 0.9rem;
}

.skip-link:hover {
    color: var(--gold);
    text-decoration: underline;
}

@media (max-width: 900px) {
    .auth-container {
        flex-direction: column;
    }
    .auth-image {
        flex: 0 0 auto;
        height: 180px;
    }
    .auth-forms {
        padding: 36px 28px;
    }
    .auth-tab {
        flex: 1;
        padding: 10px 16px;
    }
    .inscription-container {
        padding: 36px 24px 48px;
    }
    .progress-bar {
        margin-bottom: 24px;
    }
    .step-actions {
        flex-direction: column;
    }
}
