/* ============================
   RESET
============================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", Arial, sans-serif;
}

/* ============================
   BODY
============================ */
body {
    background: #0B0F19;
    color: #E2E8F0;
    width: 100%;
    min-height: 100vh;
    padding: 20px;
}

/* ============================
   WRAPPER DO LOGIN
============================ */
.auth-wrapper {
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 40px);
}

.auth-card {
    width: 100%;
    background: #111827;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 0 25px rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.06);
    animation: fadeIn .4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-card h1 {
    text-align: center;
    margin-bottom: 25px;
    font-size: 30px;
}

form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 14px;
    color: #9CA3AF;
}

input {
    padding: 14px;
    border-radius: 12px;
    background: #0F1624;
    border: 1px solid #1F2937;
    color: white;
    font-size: 15px;
    transition: .2s;
}

input:focus {
    border-color: #0066FF;
    box-shadow: 0 0 10px rgba(0,102,255,0.4);
}

button {
    padding: 14px;
    border-radius: 12px;
    border: none;
    background: #0066FF;
    color: white;
    font-weight: 600;
    font-size: 17px;
    cursor: pointer;
    transition: .25s;
}

button:hover {
    background: #003A99;
    transform: translateY(-2px);
}

.switch-link {
    margin-top: 15px;
    text-align: center;
    font-size: 14px;
    color: #80AFFF;
}

.switch-link a {
    color: #4C9FFF;
    text-decoration: none;
}

/* ============================
   ALERTAS
============================ */
.alert {
    padding: 12px;
    border-radius: 10px;
    text-align: center;
    font-size: 14px;
    margin-bottom: 15px;
}

.alert.error {
    background: rgba(255, 72, 72, 0.15);
    border: 1px solid rgba(255, 72, 72, 0.35);
    color: #FF4E4E;
}

/* ============================
   TOPBAR — estilo GitHub/Binance
============================ */
.topbar {
    width: 100%;
    background: #0D1117;
    padding: 25px 25px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    border-radius: 14px;
    margin: 0 auto 35px auto;
    max-width: 1100px;

    border: 1px solid #1F2937;
    box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.topbar .brand {
    font-size: 22px;
    font-weight: 700;
    color: #4C9FFF;
}

.topnav {
    display: flex;
    gap: 20px;
}

.topnav a {
    background: #1F2937;
    padding: 8px 14px;
    border-radius: 10px;
    text-decoration: none;

    color: #E2E8F0;
    font-weight: 500;
    font-size: 15px;

    transition: .25s;
}

.topnav a:hover {
    background: #2A3545;
}

.topnav .logout {
    background: rgba(255, 68, 68, 0.18);
    color: #FF6868;
}

.topnav .logout:hover {
    background: rgba(255, 68, 68, 0.28);
}

/* ============================
   MENU MOBILE (Hamburger)
============================ */
.menu-btn {
    display: none;
    cursor: pointer;
}

.menu-btn div,
.menu-btn div::before,
.menu-btn div::after {
    width: 22px;
    height: 2px;
    background: #E2E8F0;
    border-radius: 3px;
    position: relative;
}

.menu-btn div::before,
.menu-btn div::after {
    content: "";
    position: absolute;
    left: 0;
}

.menu-btn div::before {
    top: -6px;
}
.menu-btn div::after {
    top: 6px;
}

.mobile-menu {
    display: none;
}

/* ============================
   PAGINAS INTERNAS
============================ */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 25px;
}

.dashboard h2 {
    font-size: 28px;
    margin-bottom: 10px;
}

.welcome-text {
    margin-bottom: 25px;
    font-size: 16px;
    color: #A7B4C6;
}

.next-step {
    margin-top: 30px;
    color: #9CA3AF;
}

/* ============================
   CARDS
============================ */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.card {
    background: #111827;
    padding: 25px;
    border-radius: 18px;
    border: 1px solid #1F2937;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    box-shadow: 0 0 20px rgba(0,0,0,0.3);
    transition: .25s;
}

.card:hover {
    transform: translateY(-4px);
    border-color: #0066FF;
}

.card h3 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #80AFFF;
}

.card .value {
    font-size: 28px;
    font-weight: 700;
    color: white;
}

/* ============================
   RESPONSIVO — MOBILE APP REAL
============================ */
@media (max-width: 480px) {

    /* Layout estilo app */
    body {
        padding: 0;
        background: #0B0F19;
    }

    /* Topbar fixa */
    .topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;

        border-radius: 0;
        max-width: 100%;

        padding: 18px 18px;
        display: flex;
        justify-content: space-between;
        align-items: center;

        border-bottom: 1px solid #1F2937;
        z-index: 0;
    }

    .topbar .brand {
        font-size: 18px;
    }

    /* Oculta menu desktop */
    .topnav {
        display: none !important;
    }

    /* Botão menu mobile */
    .menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        background: #1F2937;
        border-radius: 8px;
    }

    /* MENU MOBILE estilo App */
    .mobile-menu {
        display: none;
        flex-direction: column;
        background: #111827;
        padding: 18px 20px;
        position: fixed;
        top: 80px;
        left: 0;
        right: 0;
        z-index: 999;
        gap: 10px;
        border-bottom: 1px solid #1F2937;
    }

    .mobile-menu a {
        background: #1F2937;
        padding: 14px;
        border-radius: 10px;
        font-size: 16px;
        color: #E2E8F0;
        text-decoration: none;
    }

    /* Container ocupa a tela toda */
    .container {
        padding: 50px 14px 20px 14px;
        width: 100%;
        max-width: 100%;
    }

    /* Títulos mais compactos */
    .dashboard h2 {
        font-size: 22px;
        margin-bottom: 8px;
    }

    .welcome-text {
        font-size: 14px;
        margin-bottom: 20px;
    }

    /* CARDS estilo aplicativo */
    .dashboard-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .card {
        background: #111827;
        padding: 18px 16px;
        border-radius: 14px;
        min-height: 90px;

        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .card h3 {
        font-size: 15px;
        margin-bottom: 6px;
    }

    .card .value {
        font-size: 24px;
        font-weight: 700;
    }

    /* Login também vira app */
    .auth-card {
        padding: 28px 22px;
        border-radius: 14px;
        margin: 20px;
    }
}