@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800;900&family=Outfit:wght@300;400;500;600&display=swap');

:root {
    --orange: #F28C28;
    --orange-dk: #D4771F;
    --orange-lt: #FEF0DE;
    --navy: #1B2A4A;
    --navy-lt: #243660;
    --white: #FFFFFF;
    --bg-alt: #F5F6FA;
    --text: #1B2A4A;
    --muted: #637090;
    --border: #E2E6F0;
    --verde: #16A34A;
    --vermelho: #DC2626;
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 28px;
    --shadow-sm: 0 2px 8px rgba(27, 42, 74, .08);
    --shadow-md: 0 8px 32px rgba(27, 42, 74, .12);
    --ff-head: 'Nunito', sans-serif;
    --ff-body: 'Outfit', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--ff-body);
    color: var(--text);
    background: var(--bg-alt);
    line-height: 1.6;
    min-height: 100vh;
}

h1, h2, h3 {
    font-family: var(--ff-head);
    font-weight: 800;
    color: var(--navy);
}

a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 600;
}

a:hover {
    color: var(--orange-dk);
    text-decoration: underline;
}

/* ====== AUTH (login, cadastro) ====== */

.auth-container {
    max-width: 440px;
    margin: 60px auto;
    padding: 44px 36px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border);
}

.auth-logo {
    display: block;
    width: 140px;
    height: auto;
    margin: 0 auto 20px;
}

.auth-container h1 {
    text-align: center;
    margin-bottom: 28px;
    font-size: 1.6rem;
    font-weight: 900;
    color: var(--navy);
}

.auth-container form {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-container label {
    font-family: var(--ff-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    margin-top: 10px;
}

.auth-container input,
.auth-container select {
    padding: 13px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--ff-body);
    font-size: 1rem;
    color: var(--text);
    background: var(--white);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-container input:focus,
.auth-container select:focus {
    outline: none;
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgba(242, 140, 40, 0.15);
}

.auth-container button[type="submit"] {
    margin-top: 22px;
    padding: 15px;
    background: var(--orange);
    color: var(--white);
    border: none;
    border-radius: 99px;
    font-family: var(--ff-head);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.18s, box-shadow 0.18s;
}

.auth-container button[type="submit"]:hover {
    background: var(--orange-dk);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.auth-container button[type="submit"]:active {
    transform: translateY(0);
}

.auth-links {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.auth-links p {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 8px;
}

.auth-links a {
    display: inline-block;
    margin: 4px 8px;
    font-size: 0.9rem;
    font-family: var(--ff-head);
    font-weight: 700;
}

/* ====== ALERTAS ====== */

.alert {
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: var(--ff-head);
    margin-bottom: 20px;
}

.alert-erro {
    background: #FEF2F2;
    color: var(--vermelho);
    border: 1px solid #FECACA;
}

.alert-sucesso {
    background: #F0FDF4;
    color: var(--verde);
    border: 1px solid #BBF7D0;
}

/* ====== NAVBAR ====== */

header {
    background: var(--white);
    box-shadow: 0 1px 0 var(--border);
}

header nav {
    max-width: 1140px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo {
    height: 44px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
}

.nav-user-name {
    color: var(--navy);
    font-family: var(--ff-head);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
    user-select: none;
}

.nav-user-name:hover {
    background: var(--orange-lt);
}

.nav-user-name::after {
    content: ' ▾';
    font-size: 0.7rem;
    color: var(--muted);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: var(--white, #fff);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
}

.nav-dropdown.open {
    display: block;
}

.nav-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px;
    font-family: var(--ff-head);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--navy);
    text-decoration: none;
    transition: background 0.15s;
    border: none;
    border-radius: 0;
}

.nav-dropdown a:hover {
    background: var(--orange-lt);
    color: var(--orange-dk);
    text-decoration: none;
}

.nav-dropdown .nav-drop-sep {
    height: 1px;
    background: var(--border);
    margin: 0;
}

.nav-dropdown .nav-drop-sair {
    color: var(--muted);
}

/* ====== MAIN (dashboards) ====== */

.dashboard {
    max-width: 1140px;
    margin: 36px auto;
    padding: 0 24px;
}

.dashboard h1 {
    font-size: 1.5rem;
    font-weight: 900;
    margin-bottom: 8px;
}

.dashboard p {
    color: var(--muted);
    font-size: 1rem;
}

/* ====== RESPONSIVO ====== */

@media (max-width: 480px) {
    .auth-container {
        margin: 24px 16px;
        padding: 28px 20px;
    }

    .auth-container h1 {
        font-size: 1.4rem;
    }

    .auth-logo {
        width: 140px;
    }

    header nav {
        padding: 10px 16px;
    }

    .nav-logo {
        height: 38px;
    }

    .nav-user-name {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
}
