/* Login isolado das telas de operação, usando os tokens visuais existentes. */
.auth-page {
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px;
    background: radial-gradient(
        ellipse at top,
        #dce9f9,
        var(--background) 65%
    );
}

.auth-card {
    width: 100%;
    max-width: 460px;
    min-width: 0;
    padding: 40px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: 0 16px 60px rgb(20 35 54 / 8%);
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    font-size: 18px;
    font-weight: 700;
}

.auth-brand .brand-mark {
    color: #ffffff;
}

.auth-card h1 {
    font-size: 30px;
}

.auth-form {
    display: grid;
    gap: 20px;
    margin-top: 28px;
}

.auth-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.auth-form input:not([type="hidden"]) {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding: 12px;
    border: 1px solid #aebdce;
    border-radius: 8px;
    background: #ffffff;
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.auth-submit,
.platform-logout {
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--accent);
    border-radius: 8px;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.auth-submit {
    background: var(--accent);
    color: #ffffff;
}

.auth-submit:hover {
    background: #114f9f;
}

.platform-logout {
    background: #ffffff;
    color: var(--accent);
}

.platform-logout:hover {
    background: #edf4ff;
}

.auth-form input:focus-visible,
.auth-submit:focus-visible,
.platform-logout:focus-visible {
    outline: 3px solid #3384ea;
    outline-offset: 3px;
}

.auth-error {
    margin: 20px 0 0;
    padding: 12px 14px;
    border: 1px solid #e3a7a7;
    border-radius: 8px;
    background: #fff3f3;
    color: #922626;
}

.auth-note {
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 13px;
}

/* Conta na barra superior: permite quebra sem ampliar a página. */
.topbar {
    flex-wrap: wrap;
}

.platform-account {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    min-width: 0;
}

.platform-account span {
    max-width: 220px;
    overflow-wrap: anywhere;
    font-size: 13px;
}

.platform-account form {
    margin: 0;
}

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

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

    .auth-card h1 {
        font-size: 26px;
    }

    .platform-account {
        width: 100%;
        justify-content: space-between;
    }
}