/* ==========================================
   VARIÁVEIS DE COR E TIPOGRAFIA
   ========================================== */
:root {
    --primary: #2E5B5E; /* Verde Slate Profundo */
    --secondary: #D4AF37; /* Ouro Mudo */
    --bg-color: #FBFBFB; /* Branco Off-White */
    --text-dark: #222222;
    --text-muted: #666666;
    --white: #FFFFFF;
    --radius-card: 12px;
    --radius-btn: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
}

/* ==========================================
   LAYOUT MOBILE-FIRST
   ========================================== */
main {
    max-width: 480px; /* Mantém a proporção de app mesmo no desktop */
    margin: 0 auto;
    min-height: 100vh;
    background-color: var(--bg-color);
    padding-bottom: 40px;
}

.container {
    padding: 20px;
}

/* ==========================================
   TOPBAR
   ========================================== */
.topbar {
    background-color: var(--primary);
    color: var(--white);
    padding: 16px 20px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.topbar-content {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar h1 {
    font-size: 1.2rem;
    font-weight: 600;
}

.logout-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* ==========================================
   BOTÕES E COMPONENTES
   ========================================== */
.btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    border: none;
    border-radius: var(--radius-btn);
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s;
}

.btn:active {
    opacity: 0.8;
}

.btn-primary {
    background-color: var(--secondary);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(212, 175, 55, 0.3); /* Sombra sutil dourada */
}

/* Campos de Formulário */
.form-group {
    margin-bottom: 16px;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #E0E0E0;
    border-radius: var(--radius-btn);
    font-size: 1rem;
    background-color: var(--white);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
}