:root {
    --sfera-primary: #0056b3;
    --sfera-primary-dark: #003b7a;
    --sfera-bg: #f5f6fa;
    --sfera-text: #1b1f2a;
    --sfera-border: #d9dee8;
}

body {
    margin: 0;
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background: var(--sfera-bg);
    color: var(--sfera-text);
}

.app-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 1.5rem;
    background: var(--sfera-primary);
    color: #fff;
}

.app-brand {
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
}

.app-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.app-nav a {
    color: #e6f2ee;
    text-decoration: none;
}

.app-nav a:hover {
    text-decoration: underline;
}

.app-user {
    opacity: 0.85;
    font-size: 0.9rem;
}

.app-logout button {
    background: transparent;
    border: 1px solid #cfe3dc;
    color: #fff;
    border-radius: 4px;
    padding: 0.25rem 0.75rem;
    cursor: pointer;
}

.app-main {
    flex: 1;
    padding: 1.5rem;
    max-width: 1080px;
    width: 100%;
    margin: 0 auto;
}

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sfera-bg);
}

.auth-card {
    background: #fff;
    border: 1px solid var(--sfera-border);
    border-radius: 8px;
    padding: 2rem;
    width: min(380px, 90vw);
    box-shadow: 0 10px 30px rgba(11, 93, 75, 0.08);
}

.auth-title {
    margin: 0 0 0.25rem;
    color: var(--sfera-primary-dark);
    font-size: 1.4rem;
}

.auth-subtitle {
    margin: 0 0 1.5rem;
    color: #5c6b66;
    font-size: 0.95rem;
}

.auth-field {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.auth-input {
    padding: 0.6rem 0.75rem;
    border: 1px solid var(--sfera-border);
    border-radius: 6px;
    font-size: 1rem;
}

.auth-input:focus {
    outline: 2px solid var(--sfera-primary);
    outline-offset: 1px;
}

.auth-button {
    width: 100%;
    padding: 0.7rem;
    background: var(--sfera-primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.5rem;
}

.auth-button:hover {
    background: var(--sfera-primary-dark);
}

.auth-error {
    background: #fdecea;
    border: 1px solid #f5c6c0;
    color: #8a1f11;
    padding: 0.6rem 0.75rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

.auth-validation {
    color: #8a1f11;
    font-size: 0.85rem;
}

.sfera-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

.sfera-table th,
.sfera-table td {
    text-align: left;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid var(--sfera-border);
}

.sfera-table th {
    background: #edf3f1;
}

.painel-info {
    line-height: 1.8;
}
