/* --- 1. VARIÁVEIS MODERNAS --- */
:root {
    --primary: #0f172a;       /* Azul Navy Profundo */
    --accent: #0ea5e9;        /* Ciano vibrante para ação */
    --accent-hover: #0284c7;
    --bg-page: #f8fafc;
    --bg-card: #ffffff;
    --text-main: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
    --shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    --radius: 16px;
}

/* --- 2. RESET E BASE --- */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', -apple-system, sans-serif; }

body {
    background-color: var(--bg-page);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: var(--text-main);
}

/* --- 3. BARRA DE NAVEGAÇÃO SUPERIOR --- */
.top-nav-bar {
    position: fixed;
    top: 24px;
    right: 24px;
    display: flex;
    gap: 12px;
    z-index: 100;
}

.btn-nav {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(8px); /* Efeito de vidro */
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 13px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.btn-nav:hover {
    background: var(--bg-card);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* --- 4. CONTAINER E CARD --- */
.container { 
    width: 100%; 
    max-width: 700px; /* Tamanho otimizado para legibilidade */
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.content {
    background: var(--bg-card);
    padding: 48px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

/* --- 5. TIPOGRAFIA E CAMPOS --- */
h1 { 
    color: var(--primary); 
    text-align: center; 
    margin-bottom: 32px; 
    font-size: 28px; 
    font-weight: 800;
    letter-spacing: -0.5px;
}

p { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }

label { 
    font-size: 11px; 
    font-weight: 700; 
    color: var(--text-muted); 
    text-transform: uppercase; 
    letter-spacing: 1px;
}

input:not([type="submit"]) {
    padding: 14px 16px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 15px;
    background-color: #fcfdfe;
    transition: all 0.2s ease;
}

input:not([type="submit"]):focus {
    border-color: var(--accent);
    background-color: var(--bg-card);
    outline: none;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.1);
}

/* --- 6. BOTÃO DE AÇÃO E LINKS --- */
input[type="submit"] {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(15, 23, 42, 0.2);
}

input[type="submit"]:hover {
    background: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 10px 15px rgba(14, 165, 233, 0.3);
}

.link {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.link a { 
    color: var(--accent); 
    font-weight: 700; 
    text-decoration: none;
    transition: color 0.2s;
}

.link a:hover { color: var(--accent-hover); text-decoration: underline; }

/* --- 7. RESPONSIVIDADE --- */
@media (max-width: 600px) {
    body { justify-content: flex-start; padding-top: 80px; }
    .top-nav-bar { width: 100%; justify-content: center; right: 0; top: 15px; }
    .content { padding: 30px 24px; }
    h1 { font-size: 24px; }
}


/* Barra Superior */
.top-nav-bar {
    position: absolute; top: 0; left: 0; right: 0; height: 60px;
    background: var(--white); display: flex; align-items: center;
    justify-content: space-between; padding: 0 40px; border-bottom: 1px solid var(--border);
}
.btn-nav {
    background: var(--white); border: 1px solid var(--border); padding: 8px 15px;
    border-radius: 6px; cursor: pointer; font-weight: 600; color: var(--primary);
}

/* Container Largo */
.container { width: 100%; max-width: 700px; }
.content {
    background: var(--white); padding: 50px; border-radius: var(--radius);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05); border: 1px solid var(--border);
}
