/*
 * TSF Portal IA · Authentication screens
 * ---------------------------------------------------------------------------
 * Styles for the login / password screens. Loaded after style.css so every
 * rule can rely on the portal design tokens (--r, --t1, --bd, --rs, ...).
 */

.auth-body {
    min-height: 100vh;
    background: var(--bg);
}

.auth-shell {
    min-height: 100vh;
    display: flex;
}

/* ── Logo ─────────────────────────────────────────────────────────────── */

.auth-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 26px;
}

.auth-logo-mark {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 10px;
    background: var(--r);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: .5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-logo-name {
    font-weight: 700;
    font-size: 15px;
    line-height: 1.2;
    color: var(--t1);
}

.auth-logo-tag {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    color: var(--t2);
}

/* ── Form panel ───────────────────────────────────────────────────────── */

.auth-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
}

.auth-card {
    width: 100%;
    max-width: 408px;
    background: var(--wh);
    border: 1px solid var(--bd);
    border-radius: var(--ra);
    box-shadow: var(--shd);
    padding: 30px 30px 26px;
}

.auth-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -.3px;
    color: var(--t1);
}

.auth-sub {
    margin-top: 4px;
    font-size: 13px;
    color: var(--t2);
}

.auth-form {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.auth-field .fl {
    margin-bottom: 6px;
    display: block;
}

.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-input-wrap svg {
    position: absolute;
    left: 11px;
    width: 16px;
    height: 16px;
    color: var(--t3);
    pointer-events: none;
}

.auth-input-wrap .fi {
    width: 100%;
    padding: 10px 12px 10px 35px;
}

.auth-input-wrap .fi.has-toggle {
    padding-right: 40px;
}

.auth-input-wrap .fi[aria-invalid="true"] {
    border-color: var(--r);
}

.auth-input-wrap .fi[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px var(--rl);
}

.auth-eye {
    position: absolute;
    right: 6px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: var(--t3);
    transition: color .15s, background-color .15s;
}

.auth-eye:hover {
    background: var(--bg);
    color: var(--t1);
}

.auth-eye svg {
    position: static;
    color: inherit;
    pointer-events: none;
}

.auth-error {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--r);
}

.auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    color: var(--t2);
    cursor: pointer;
    user-select: none;
}

.auth-check input {
    width: 15px;
    height: 15px;
    accent-color: var(--r);
    cursor: pointer;
}

.auth-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--r);
}

.auth-link:hover {
    text-decoration: underline;
}

.auth-submit {
    justify-content: center;
    width: 100%;
    padding: 10px 16px;
    font-size: 14px;
}

.auth-foot {
    margin-top: 22px;
    font-size: 12.5px;
    color: var(--t2);
    text-align: center;
}

.auth-legal {
    margin-top: 28px;
    padding-top: 16px;
    border-top: 1px solid var(--bd);
    font-size: 11px;
    color: var(--t3);
    text-align: center;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .auth-panel {
        align-items: flex-start;
        padding: 32px 16px;
    }

    .auth-card {
        padding: 24px 20px 22px;
    }
}
