/* ═══════════════════════════════════════════
   AUTH PAGES — Marquo.fr
   Split layout: form left, info panel right
   Colors: --primary #1f2a58, --secondary #13aa74, --accent #00cb99
   ═══════════════════════════════════════════ */

/* ─── SPLIT LAYOUT ─── */
.auth-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: calc(100vh - 160px);
}

/* ─── LEFT SIDE (FORM) ─── */
.auth-split__left {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 48px;
    background: var(--white, #fff);
}

.auth-split__form-wrapper {
    width: 100%;
    max-width: 480px;
}

.auth-split__title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary, #1f2a58);
    margin: 0 0 10px;
    letter-spacing: -0.03em;
}

.auth-split__subtitle {
    color: var(--gray-500, #6b7280);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 36px;
    max-width: 420px;
}

/* ─── FORM ELEMENTS ─── */
.auth-form .form-group {
    margin-bottom: 22px;
}

.auth-form .form-label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--gray-700, #374151);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.form-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 8px;
}

.form-label-row .form-label {
    margin-bottom: 0;
}

.form-label-link {
    font-size: 0.8125rem;
    color: var(--secondary, #13aa74);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.form-label-link:hover {
    color: var(--accent, #00cb99);
}

/* Input wrapper with icon */
.form-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 16px;
    color: var(--gray-400, #9ca3af);
    pointer-events: none;
    z-index: 1;
    flex-shrink: 0;
}

.auth-form .form-input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid var(--gray-200, #e5e7eb);
    border-radius: var(--radius, 12px);
    font-size: 0.9375rem;
    font-family: var(--font-body, 'Inter', sans-serif);
    color: var(--gray-900, #111827);
    background: var(--white, #fff);
    transition: border-color 0.2s, box-shadow 0.2s;
    outline: none;
    box-sizing: border-box;
}

.auth-form .form-input--icon {
    padding-left: 46px;
}

.auth-form .form-input::placeholder {
    color: var(--gray-400, #9ca3af);
}

.auth-form .form-input:hover {
    border-color: var(--gray-300, #d1d5db);
}

.auth-form .form-input:focus {
    border-color: var(--secondary, #13aa74);
    box-shadow: 0 0 0 3px rgba(19, 170, 116, 0.1);
}

/* Password toggle */
.form-password__toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400, #9ca3af);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color 0.2s;
    z-index: 1;
}

.form-password__toggle:hover {
    color: var(--gray-600, #4b5563);
}

/* ─── BUTTONS ─── */
.auth-btn {
    width: 100%;
    padding: 14px 24px;
    border-radius: var(--radius, 12px);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body, 'Inter', sans-serif);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
}

.auth-btn svg {
    transition: transform 0.2s;
    flex-shrink: 0;
}

.auth-btn:hover svg {
    transform: translateX(3px);
}

/* Primary — secondary green */
.auth-btn--primary {
    background: var(--secondary, #13aa74);
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(19, 170, 116, 0.25);
}

.auth-btn--primary:hover {
    background: var(--accent, #00cb99);
    box-shadow: 0 4px 16px rgba(19, 170, 116, 0.35);
    transform: translateY(-1px);
}

.auth-btn--primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(19, 170, 116, 0.25);
}

/* Outline */
.auth-btn--outline {
    background: transparent;
    color: var(--primary, #1f2a58);
    border: 1.5px solid var(--gray-200, #e5e7eb);
}

.auth-btn--outline:hover {
    border-color: var(--primary, #1f2a58);
    background: rgba(31, 42, 88, 0.03);
}

/* ─── DIVIDER ─── */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 28px 0;
    font-size: 0.8125rem;
    color: var(--gray-400, #9ca3af);
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200, #e5e7eb);
}

/* ─── RIGHT SIDE (INFO PANEL) ─── */
.auth-split__right {
    background: #f0f5f3;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.auth-split__right-content {
    padding: 40px 48px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-split__right-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary, #1f2a58);
    margin: 0 0 10px;
    letter-spacing: -0.02em;
}

.auth-split__right-subtitle {
    color: var(--gray-500, #6b7280);
    font-size: 0.9375rem;
    line-height: 1.6;
    margin: 0 0 36px;
    max-width: 360px;
}

/* ─── FEATURES LIST ─── */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.auth-feature__icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius, 12px);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: rgba(19, 170, 116, 0.1);
    color: var(--secondary, #13aa74);
}

.auth-feature__text {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}

.auth-feature__text strong {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--primary, #1f2a58);
}

.auth-feature__text span {
    font-size: 0.8125rem;
    color: var(--gray-500, #6b7280);
    line-height: 1.5;
}

/* ─── NOTICES ─── */
.auth-split .notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.auth-split .notice--danger {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.auth-split .notice--success {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.auth-split .notice--warning {
    background: #fffbeb;
    color: #854d0e;
    border: 1px solid #fde68a;
}

/* ─── SHARED AUTH FORM ELEMENTS (register, forgot, reset) ─── */
.auth-form__name-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.auth-form__terms {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.8125rem;
    color: var(--gray-600, #4b5563);
    line-height: 1.5;
    margin-bottom: 24px;
}

.auth-form__terms input[type="checkbox"] {
    width: 16px;
    height: 16px;
    min-width: 16px;
    border-radius: 4px;
    margin-top: 2px;
    accent-color: var(--secondary, #13aa74);
    cursor: pointer;
}

.auth-form__terms a {
    color: var(--secondary, #13aa74);
    text-decoration: none;
    font-weight: 500;
}

.auth-form__terms a:hover {
    text-decoration: underline;
}

.password-strength {
    margin-top: 8px;
    height: 3px;
    border-radius: 2px;
    background: var(--gray-200, #e5e7eb);
    overflow: hidden;
}

.password-strength__bar {
    height: 100%;
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s, background 0.3s;
}

.password-strength__bar--weak { width: 33%; background: var(--danger, #ef4444); }
.password-strength__bar--medium { width: 66%; background: var(--warning, #f59e0b); }
.password-strength__bar--strong { width: 100%; background: var(--secondary, #13aa74); }

.password-strength__text {
    font-size: 0.75rem;
    margin-top: 4px;
    color: var(--gray-500, #6b7280);
}

/* ─── AUTH CARD (forgot password, reset pages) ─── */
.auth-section {
    min-height: calc(100vh - 200px);
    background: var(--gray-50, #f8f9fb);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 16px 80px;
}

.auth-container {
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--white, #fff);
    border-radius: 16px;
    padding: 40px 36px;
    border: 1px solid var(--gray-150, #e8eaef);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.03);
}

.auth-card__title {
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
    margin: 0 0 6px;
    color: var(--primary, #1f2a58);
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    text-align: center;
    color: var(--gray-500, #6b7280);
    font-size: 0.9375rem;
    margin: 0 0 32px;
    line-height: 1.5;
}

.auth-card__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(19, 170, 116, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
}

.auth-card .notice {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 0.8125rem;
    line-height: 1.5;
    margin-bottom: 24px;
}

.auth-card .notice--danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.auth-card .notice--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.auth-card .notice--warning { background: #fffbeb; color: #854d0e; border: 1px solid #fde68a; }

.auth-card__footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-100, #f3f4f6);
    font-size: 0.875rem;
    color: var(--gray-500, #6b7280);
}

.auth-card__footer a {
    color: var(--secondary, #13aa74);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.auth-card__footer a:hover {
    color: var(--accent, #00cb99);
}

.auth-card__back {
    text-align: center;
    margin-top: 20px;
    font-size: 0.875rem;
}

.auth-card__back a {
    color: var(--gray-500, #6b7280);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-card__back a:hover {
    color: var(--primary, #1f2a58);
}

.auth-form__submit {
    width: 100%;
    padding: 13px 24px;
    background: var(--secondary, #13aa74);
    color: var(--white, #fff);
    border: none;
    border-radius: var(--radius, 12px);
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-body, 'Inter', sans-serif);
    cursor: pointer;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.auth-form__submit:hover {
    background: var(--accent, #00cb99);
    box-shadow: 0 4px 14px rgba(19, 170, 116, 0.3);
    transform: translateY(-1px);
}

.auth-form__submit:active {
    transform: translateY(0);
    box-shadow: none;
}

.auth-form__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gray-600, #4b5563);
    font-size: 0.8125rem;
    cursor: pointer;
    user-select: none;
}

.auth-form__remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    accent-color: var(--secondary, #13aa74);
    cursor: pointer;
}

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }

    .auth-split__right {
        display: none;
    }

    .auth-split__left {
        padding: 40px 24px;
        min-height: calc(100vh - 160px);
    }
}

@media (max-width: 520px) {
    .auth-split__left {
        padding: 32px 16px;
    }

    .auth-split__title {
        font-size: 1.5rem;
    }

    .auth-form__name-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-section {
        padding: 32px 16px 48px;
    }

    .auth-card {
        padding: 28px 22px;
    }
}

@media (max-width: 360px) {
    .auth-split__left {
        padding: 24px 14px;
    }

    .auth-card {
        padding: 22px 16px;
    }
}
