/* ===============================
   RESET E BASE
================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI",
                 Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue",
                 Arial, sans-serif;
    background-color: #f5f6f8;
    color: #1f2937;
}

/* ===============================
   LAYOUT GERAL
================================ */
.layout {
    display: flex;
    min-height: 100vh;
}

/* ===============================
   MENU VERTICAL
================================ */
.sidebar {
    width: 230px;
    background-color: #0f172a;
    color: #e5e7eb;
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
}

.sidebar h2 {
    font-size: 20px;
    margin-bottom: 32px;
    color: #ffffff;
}

.sidebar nav a {
    display: block;
    padding: 10px 12px;
    margin-bottom: 8px;
    text-decoration: none;
    color: #cbd5f5;
    border-radius: 6px;
    transition: background 0.2s, color 0.2s;
}

.sidebar nav a:hover {
    background-color: #1e293b;
    color: #ffffff;
}

/* ===============================
   CONTEÚDO PRINCIPAL
================================ */
.content {
    flex: 1;
    padding: 32px;
}

/* ===============================
   TÍTULOS
================================ */
h1 {
    font-size: 26px;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    margin-bottom: 16px;
}

/* ===============================
   CARDS
================================ */
.card {
    background-color: #ffffff;
    padding: 24px;
    border-radius: 8px;
    max-width: 520px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* ===============================
   FORMULÁRIOS
================================ */
form {
    margin-top: 10px;
}

input,
select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 14px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    font-size: 14px;
}

input:focus,
select:focus {
    outline: none;
    border-color: #2563eb;
}

/* ===============================
   BOTÕES
================================ */
.btn,
button {
    display: inline-block;
    background-color: #2563eb;
    color: #ffffff;
    padding: 12px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.btn:hover,
button:hover {
    background-color: #1d4ed8;
}

/* ===============================
   LOGIN / REGISTRO
================================ */
.auth {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.auth-box {
    background-color: #ffffff;
    padding: 32px;
    width: 360px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.auth-box h1 {
    text-align: center;
    margin-bottom: 24px;
}

.auth-box a {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: 14px;
    color: #2563eb;
    text-decoration: none;
}

/* ===============================
   MENSAGENS
================================ */
.error {
    background-color: #fee2e2;
    color: #991b1b;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    font-size: 14px;
}

/* ===============================
   FOOTER
================================ */
.footer {
    text-align: center;
    padding: 12px;
    background-color: #e5e7eb;
    font-size: 13px;
    color: #374151;
}

/* ===============================
   RESPONSIVO
================================ */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        flex-direction: row;
        align-items: center;
        justify-content: space-around;
    }

    .layout {
        flex-direction: column;
    }

    .content {
        padding: 20px;
    }
}
