:root {
    --cor-primaria: #0affa0;
    --cor-primaria-hover: #00e08b;
    --cor-secundaria: #ffffff;
    --cor-fundo-escuro: #061811;
    --cor-texto: #0f172a;
}

* {
    box-sizing: border-box;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

body {
    background: radial-gradient(circle at top, #0d2e22 0%, var(--cor-fundo-escuro) 100%);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    margin: 0;
}

/* =========================================================
   BALÕES FLUTUANTES MODERNOS (TOAST NOTIFICATIONS)
   ========================================================= */
.container-baloes {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: calc(100% - 36px);
    max-width: 380px;
    pointer-events: none;
}

@media (max-width: 576px) {
    .container-baloes {
        top: 14px;
        right: 50%;
        transform: translateX(50%);
        width: calc(100% - 28px);
    }
}

.balao-flutuante {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    overflow: hidden;
    transform: translateY(-25px) scale(0.95);
    opacity: 0;
    transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.balao-flutuante.visivel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.balao-flutuante.saindo {
    transform: translateY(-15px) scale(0.92);
    opacity: 0;
    transition: all 0.25s ease-in;
}

.balao-icone {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

/* Variações de Cores dos Balões */
.balao-sucesso .balao-icone {
    background-color: var(--cor-primaria);
    color: #061811;
    box-shadow: 0 4px 12px rgba(10, 255, 160, 0.4);
}

.balao-erro .balao-icone {
    background-color: #fee2e2;
    color: #dc2626;
}

.balao-aviso .balao-icone {
    background-color: #fef3c7;
    color: #d97706;
}

.balao-conteudo {
    flex: 1;
    min-width: 0;
}

.balao-titulo {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.balao-mensagem {
    font-size: 13.5px;
    color: #475569;
    margin: 0;
    line-height: 1.35;
}

.balao-fechar {
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}

.balao-fechar:hover {
    color: #0f172a;
    background: #f1f5f9;
}

.balao-progresso {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 4px;
    width: 100%;
    transform-origin: left;
    animation: diminuirProgresso linear forwards;
}

.balao-sucesso .balao-progresso { background-color: #059669; }
.balao-erro .balao-progresso { background-color: #ef4444; }
.balao-aviso .balao-progresso { background-color: #f59e0b; }

@keyframes diminuirProgresso {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

/* =========================================================
   ANIMAÇÃO DE CIFRÕES NO FUNDO
   ========================================================= */
.cifroes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.cifrao-item {
    position: absolute;
    bottom: -60px;
    color: var(--cor-primaria);
    font-weight: 800;
    user-select: none;
    opacity: 0;
    text-shadow: 0 0 12px rgba(10, 255, 160, 0.45);
    animation: subirCifrao linear infinite;
}

@keyframes subirCifrao {
    0% {
        transform: translateY(0) rotate(0deg) scale(0.8);
        opacity: 0;
    }
    15% { opacity: 0.25; }
    85% { opacity: 0.25; }
    100% {
        transform: translateY(-115vh) rotate(360deg) scale(1.15);
        opacity: 0;
    }
}

/* =========================================================
   CARTÃO E FORMULÁRIO DE LOGIN
   ========================================================= */
.login-card {
    max-width: 420px;
    background-color: var(--cor-secundaria);
    border-radius: 22px;
    border-top: 6px solid var(--cor-primaria) !important;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5) !important;
}

.logo-wrapper {
    width: 88px;
    height: 88px;
    border-radius: 22px;
    padding: 6px;
    background: linear-gradient(135deg, var(--cor-primaria), #059669);
    box-shadow: 0 8px 20px rgba(10, 255, 160, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 16px;
    background-color: var(--cor-secundaria);
}

.verde-icone {
    color: #059669;
}

.input-custom {
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 12px;
    font-size: 16px;
    padding: 13px 15px;
    color: var(--cor-texto);
    transition: all 0.2s ease;
}

.input-custom:focus {
    background-color: var(--cor-secundaria);
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 4px rgba(10, 255, 160, 0.25);
}

.btn-mostrar-senha {
    background-color: #f8fafc;
    border: 2px solid #cbd5e1;
    border-left: none;
    border-radius: 0 12px 12px 0;
    color: #334155;
    padding: 0 16px;
}

.btn-mostrar-senha:hover,
.btn-mostrar-senha:focus {
    background-color: #e2e8f0;
    color: #0f172a;
}

.custom-checkbox .form-check-input {
    width: 1.4em;
    height: 1.4em;
    margin-top: 0.1em;
    border: 2px solid #94a3b8;
    cursor: pointer;
}

.custom-checkbox .form-check-input:checked {
    background-color: var(--cor-primaria);
    border-color: #059669;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23061811' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}

.btn-entrar {
    background-color: var(--cor-primaria);
    color: #061811;
    border: none;
    border-radius: 14px;
    font-size: 18px;
    box-shadow: 0 8px 20px rgba(10, 255, 160, 0.4);
    transition: transform 0.15s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-entrar:hover,
.btn-entrar:focus {
    background-color: var(--cor-primaria-hover);
    color: #061811;
    box-shadow: 0 10px 25px rgba(10, 255, 160, 0.55);
}

.btn-entrar:active {
    transform: scale(0.98);
}

.btn-entrar:disabled {
    background-color: #94a3b8;
    color: var(--cor-secundaria);
    box-shadow: none;
}

@media (max-width: 576px) {
    .login-card {
        border-radius: 18px;
    }
    .logo-wrapper {
        width: 76px;
        height: 76px;
    }
}