/* Login — identidade azul-petroleo e cobre, com tema claro/escuro
   (o data-theme vem do mesmo localStorage do app). */
:root {
    --c-primary-btn: #0B3C49;
    --c-primary-hover: #062B34;
    --c-surface: #ffffff;
    --c-border: #c3ced3;
    --c-text: #243137;
    --c-text-muted: #52646c;
}

:root[data-theme="dark"] {
    --c-primary-btn: #11566a;
    --c-primary-hover: #0B3C49;
    --c-surface: #0e2129;
    --c-border: #2c4a55;
    --c-text: #d5e2e7;
    --c-text-muted: #9db3bb;
}

body.auth-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #062B34;
    font-family: "Inter", "Source Sans 3", "Segoe UI", Arial, sans-serif;
}

.auth-card {
    width: 100%;
    max-width: 360px;
    background: var(--c-surface);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
    padding: 32px 28px;
}

.auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.auth-logo img {
    max-width: 100%;
}

.auth-logo .logo-light {
    display: block;
}

.auth-logo .logo-dark {
    display: none;
}

:root[data-theme="dark"] .auth-logo .logo-light {
    display: none;
}

:root[data-theme="dark"] .auth-logo .logo-dark {
    display: block;
}

.auth-field {
    margin-bottom: 16px;
}

.auth-field label {
    display: block;
    font-size: 15px;
    color: var(--c-text-muted);
    margin-bottom: 4px;
}

.auth-field input {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border: 1px solid var(--c-border);
    border-radius: 4px;
    font-size: 16px;
    background: var(--c-surface);
    color: var(--c-text);
}

.auth-field input:focus {
    outline: none;
    border-color: #D8743F;
}

[x-cloak] {
    display: none !important;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 36px;
}

.password-toggle {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 6px;
}

.auth-errors {
    background: #fdecea;
    color: #a12622;
    border-radius: 4px;
    padding: 8px 10px;
    font-size: 15px;
    margin-bottom: 16px;
}

.auth-submit {
    width: 100%;
    padding: 10px;
    background: var(--c-primary-btn);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
}

.auth-submit:hover {
    background: var(--c-primary-hover);
}

.auth-hint {
    color: var(--c-text-muted, #5b6b72);
    font-size: 0.9rem;
    margin: 12px 0;
}

.auth-forgot {
    text-align: center;
    margin-bottom: 0;
}

.auth-link {
    color: var(--c-accent, #D8743F);
    text-decoration: none;
}

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

.auth-success {
    background: rgba(33, 164, 83, 0.12);
    border: 1px solid rgba(33, 164, 83, 0.45);
    color: #21a453;
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    margin-bottom: 14px;
}
