/* Authentification EQACOM : surface publique sobre et cohérente. */
.eq-auth-body {
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: var(--bg);
}

.eq-auth-header {
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px clamp(16px, 3vw, 40px);
    background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.eq-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}

.eq-auth-brand:hover {
    color: #fff;
}

.eq-auth-brand img {
    width: auto;
    height: 40px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #fff;
}

.eq-auth-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}

.eq-auth-brand-copy strong {
    font-size: 16px;
    letter-spacing: 0;
}

.eq-auth-brand-copy small {
    color: rgba(255, 255, 255, .66);
    font-size: 11px;
    font-weight: 400;
}

.eq-auth-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}

.eq-auth-tools form {
    display: inline-flex;
    margin: 0;
}

.eq-auth-main {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(28px, 6vh, 72px) 16px;
}

.eq-auth-panel {
    width: min(100%, 440px);
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--white);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .09);
}

.eq-auth-heading {
    margin-bottom: 26px;
}

.eq-auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 10px;
    color: var(--accent);
    font-size: var(--fs-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.eq-auth-title {
    margin: 0;
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 24px;
    font-weight: 700;
    line-height: 1.2;
}

.eq-auth-subtitle {
    margin: 7px 0 0;
    color: var(--text-muted);
    font-size: var(--fs-md);
    line-height: 1.5;
}

.eq-auth-panel .form-label {
    margin-bottom: 6px;
    color: var(--text);
    font-size: var(--fs-md);
    font-weight: 600;
}

.eq-auth-panel .form-control {
    min-height: 42px;
    border-color: var(--border);
    border-radius: 6px;
    background: var(--white);
    color: var(--text);
    font-size: var(--fs-base);
}

.eq-auth-panel .form-control:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 113, 177, .13);
}

.eq-auth-panel .form-control::placeholder {
    color: var(--gray-400);
}

.eq-auth-primary {
    width: 100%;
    min-height: 42px;
    justify-content: center;
    margin-top: 4px;
    border-radius: 6px;
    background: var(--navy);
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 600;
}

.eq-auth-primary:hover,
.eq-auth-primary:focus {
    background: var(--navy-hover);
    color: #fff;
}

.eq-auth-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.eq-auth-link:hover {
    color: var(--navy);
    text-decoration: underline;
}

.eq-auth-separator {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-size: var(--fs-md);
    text-align: center;
}

.eq-auth-footer {
    padding: 18px;
    color: var(--text-muted);
    font-size: var(--fs-sm);
    text-align: center;
}

.eq-password-wrap {
    position: relative;
}

.eq-password-wrap .form-control {
    padding-right: 46px;
}

.eq-password-toggle {
    position: absolute;
    inset: 0 0 0 auto;
    width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 0 6px 6px 0;
    background: transparent;
    color: var(--gray-400);
}

.eq-password-toggle:hover {
    color: var(--accent);
}

.eq-auth-code {
    min-height: 58px !important;
    text-align: center;
    font-size: 27px !important;
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: 0;
}

.eq-strength-track {
    height: 5px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: var(--border-soft);
}

.eq-strength-fill {
    width: 0;
    height: 100%;
    border-radius: inherit;
    transition: width .2s ease, background-color .2s ease;
}

.eq-strength-label {
    min-height: 18px;
    margin-top: 4px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
}

[data-theme="dark"] .eq-auth-panel {
    box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
}

[data-theme="dark"] .eq-auth-panel .text-muted,
[data-theme="dark"] .eq-auth-panel .form-check-label {
    color: var(--text-muted) !important;
}

[data-theme="dark"] .eq-auth-panel .form-check-input {
    border-color: var(--gray-500);
    background-color: var(--bg-soft);
}

[data-theme="dark"] .eq-auth-link:hover {
    color: #fff;
}

@media (max-width: 560px) {
    .eq-auth-header {
        min-height: 58px;
        padding-inline: 12px;
    }

    .eq-auth-brand img {
        height: 36px;
        max-width: 126px;
        object-fit: contain;
    }

    .eq-auth-brand-copy {
        display: none;
    }

    .eq-auth-tools {
        gap: 4px;
    }

    .eq-auth-main {
        align-items: flex-start;
        padding: 24px 12px;
    }

    .eq-auth-panel {
        padding: 26px 22px;
        box-shadow: 0 8px 28px rgba(15, 23, 42, .08);
    }
}
