/* ----------------------------
   RESET & GLOBAL
---------------------------- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: #0D47A1; /* Azul moderno */
    color: #fff;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 40px;
}

a {
    color: #FFD700; /* Dourado para links */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ----------------------------
   CONTAINER PRINCIPAL
---------------------------- */
.container {
    background: linear-gradient(145deg, #1565C0, #0D47A1);
    width: 90%;
    max-width: 500px;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    text-align: center;
}

/* ----------------------------
   LOGO
---------------------------- */
.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: #FFD700;
    margin-bottom: 20px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* ----------------------------
   TITULOS
---------------------------- */
h1, h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

/* ----------------------------
   INPUTS
---------------------------- */
input[type="number"], input[type="password"], input[type="file"] {
    width: 90%;
    padding: 12px 15px;
    margin: 10px 0;
    border-radius: 10px;
    border: none;
    font-size: 1rem;
}

/* ----------------------------
   BOTÕES
---------------------------- */
button {
    cursor: pointer;
    padding: 12px 20px;
    margin: 10px 5px;
    border: none;
    border-radius: 10px;
    background: #FFD700;
    color: #0D47A1;
    font-weight: bold;
    font-size: 1rem;
    transition: all 0.3s ease;
}

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

button.logout {
    background: #E53935;
    color: #fff;
}

button.logout:hover {
    background: #D32F2F;
}

/* ----------------------------
   LINKS
---------------------------- */
.link {
    margin-top: 15px;
    font-size: 0.9rem;
}

/* ----------------------------
   SALDO
---------------------------- */
#userBalance {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    margin: 15px 0;
}

#userBalance p {
    font-size: 1.1rem;
    margin: 5px 0;
}

/* ----------------------------
   CARTÕES DE FUNDO (Depósito / Levantar)
---------------------------- */
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 15px;
    margin: 15px 0;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card h3 {
    font-size: 1.2rem;
}

.card span {
    font-weight: bold;
}

/* ----------------------------
   RODAPÉ ANIMADO
---------------------------- */
.footer {
    margin-top: 20px;
    font-size: 0.9rem;
    color: #FFD700;
    animation: fadeInUp 1s ease forwards;
}

@keyframes fadeInUp {
    0% {opacity: 0; transform: translateY(20px);}
    100% {opacity: 1; transform: translateY(0);}
}

/* ----------------------------
   RESPONSIVO
---------------------------- */
@media (max-width: 600px){
    .container {
        width: 95%;
        padding: 20px;
    }

    button {
        width: 90%;
        margin: 8px 0;
    }

    input[type="number"], input[type="password"], input[type="file"] {
        width: 90%;
    }
}