:root {
    --primary: #007AFF;
    --success: #34C759;
    --danger: #FF453A;
    --glass: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.1);
    --bg-dark: radial-gradient(circle at top right, #0f172a, #020617);
}

* { box-sizing: border-box; margin: 0; padding: 0; font-family: 'Inter', sans-serif; }

body { 
    color: white; 
    min-height: 100vh; 
    background: var(--bg-dark); 
    overflow-x: hidden;
}

/* TELA DE LOGIN */
#auth-screen {
    position: fixed; width: 100%; height: 100%; display: flex; 
    justify-content: center; align-items: center; z-index: 1000;
}

.auth-card {
    width: 90%; max-width: 400px; padding: 40px; border-radius: 28px;
    background: rgba(10, 15, 25, 0.9); backdrop-filter: blur(20px);
    border: 1px solid var(--border); text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.main-auth-logo {
    width: 100%; max-width: 300px; height: auto; margin-bottom: 30px;
}

/* HEADER */
.top-nav {
    position: fixed; top: 0; width: 100%; height: 75px;
    display: flex; justify-content: space-between; align-items: center;
    padding: 0 30px; background: rgba(5, 7, 10, 0.8);
    backdrop-filter: blur(15px); border-bottom: 1px solid var(--border); z-index: 100;
}

.nav-icon { height: 40px; width: auto; margin-right: 15px; }

/* GRID DO DASHBOARD */
.dashboard-grid {
    padding: 110px 25px 40px; display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px; max-width: 1200px; margin: 0 auto;
}

.card-glass { background: var(--glass); border: 1px solid var(--border); border-radius: 22px; padding: 25px; }
.full-span { grid-column: 1 / -1; }

/* INPUTS E BOTÕES */
.input-group { margin-bottom: 15px; }
.input-group input, .input-row input, textarea {
    width: 100%; padding: 12px; border-radius: 12px; border: 1px solid var(--border);
    background: rgba(255,255,255,0.05); color: white; outline: none;
}

.btn-primary {
    width: 100%; padding: 14px; background: var(--primary); border: none;
    border-radius: 12px; color: white; font-weight: 600; cursor: pointer;
}

.btn-add { padding: 12px 20px; background: var(--success); border: none; color: white; border-radius: 10px; cursor: pointer; }

/* TABS LOGIN */
.auth-tabs { display: flex; background: rgba(0,0,0,0.2); padding: 5px; border-radius: 12px; margin-bottom: 25px; }
.auth-tabs button { flex: 1; padding: 10px; border: none; background: transparent; color: #888; cursor: pointer; }
.auth-tabs button.active { background: #1e293b; color: white; border-radius: 10px; }

/* ELEMENTOS DIVERSOS */
.progress-bg { height: 8px; background: rgba(255,255,255,0.1); border-radius: 10px; margin-top: 15px; }
.progress-fill { height: 100%; background: var(--success); width: 0%; border-radius: 10px; transition: 0.5s; }
.habit-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; margin-top: 20px; }
.habit-item { background: rgba(255,255,255,0.05); padding: 15px; border-radius: 15px; text-align: center; cursor: pointer; }
.habit-item.done { background: rgba(52, 199, 89, 0.2); border: 1px solid var(--success); }
.fade-in { animation: fadeIn 0.6s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; } }

/* Container que agrupa o input e o ícone */
.password-container {
    position: relative; /* Base para o posicionamento do olho */
    display: flex;
    align-items: center;
    width: 100%;
}

/* Garante que o texto da senha não fique por baixo do ícone */
.password-container input {
    width: 100%;
    padding-right: 45px !important; /* Espaço na direita para o olho */
}

/* Posicionamento exato do olho */
.eye-icon {
    position: absolute;
    right: 15px; /* Distância da borda direita */
    top: 50%;
    transform: translateY(-50%); /* Alinhamento vertical perfeito */
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0.6;
    transition: opacity 0.3s;
    user-select: none; /* Evita selecionar o emoji como texto */
    display: flex;
    align-items: center;
    justify-content: center;
}

.eye-icon:hover {
    opacity: 1;
}
/* --- AJUSTES DE RESPONSIVIDADE (CELULAR) --- */
@media (max-width: 480px) {
    .auth-card {
        width: 95%; /* Ocupa quase toda a largura em telas pequenas */
        padding: 20px;
    }

    .main-auth-logo {
        max-width: 100%; /* Impede a logo de sair para fora do card */
        height: auto;
    }

    .auth-tabs button {
        font-size: 0.9rem; /* Diminui um pouco o texto para caber lado a lado */
    }

    .top-nav {
        padding: 0 15px; /* Reduz recuo no topo do sistema */
    }
}
