/* ==========================================================================
   DASHBOARD.CSS — Página do Usuário Logado
   Importar em: dashboard.php, login.php, cadastro.php
   Depende de: base.css
   ========================================================================== */

/* ==========================================================================
   1. LAYOUT
   ========================================================================== */

.login-container {
  position: relative;
  background: radial-gradient(circle at 30% 30%, #1a2a6c, #0b0f2a 70%);
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-container::before {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  background: rgba(0, 102, 255, 0.25);
  filter: blur(120px);
  z-index: 0;
  top: -150px;
  left: -100px;
}

.login-container::after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  background: rgba(0, 200, 255, 0.15);
  filter: blur(120px);
  z-index: 0;
  bottom: -150px;
  right: -100px;
}

.login-box {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 480px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 40px;
  border-radius: 16px;
  color: white;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
  margin-top: calc(var(--nav-height) + 20px);
  margin-bottom: 22px;
}

/* ==========================================================================
   2. TIPOGRAFIA DO BOX
   ========================================================================== */

.login-box h1,
.login-box h2 {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 20px 0;
}

.login-helper {
  margin: 0 0 18px;
  color: #fff;
  line-height: 1.5;
}

/* ==========================================================================
   3. SALDO — gradiente igual ao hero
   ========================================================================== */

.saldo-wrapper {
  margin: 16px 0 24px;
}

#saldo-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;

  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 1px;
  user-select: none;
  margin: 0;

  color: var(--primary-color);
}

/* ==========================================================================
   4. DISPLAY COM OLHO (saldo-display / eye-icon)
   ========================================================================== */

.saldo-display {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 30px 0;
}

.saldo-content {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  padding: 20px 30px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  position: relative;
}

.eye-icon {
  width: 26px !important;
  height: 26px !important;
  max-width: 26px !important;
  cursor: pointer;
  transition: all 0.25s ease;
  flex-shrink: 0;
  object-fit: contain;
  filter: brightness(1.1);
}

.eye-icon:hover {
  transform: scale(1.15) rotate(5deg);
  filter: brightness(1.4) drop-shadow(0 4px 12px rgba(96, 165, 250, 0.5));
}

/* ==========================================================================
   5. BOTÃO DOWNLOAD CARTA
   ========================================================================== */

.login-box .btn-secondary {
  width: 100%;
  padding: 14px;
  margin: 10px 0;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s;
  box-sizing: border-box;
  color: white;
  text-decoration: none;
  display: block;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
}

.login-box .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}
/* ==========================================================================
   6. FORMULÁRIO — inputs, botão, links, validação
   ========================================================================== */

.form-group {
  position: relative;
  margin-bottom: 20px;
  text-align: left;
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: #fff;
  font-family: 'diodrum', sans-serif;
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s, background 0.3s;
  box-sizing: border-box;
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-group input:focus {
  border-color: var(--primary-color);
  background: rgba(255, 255, 255, 0.11);
}

.form-group.error input {
  border-color: #ff4d4d;
}

.error-msg {
  display: none;
  color: #ff4d4d;
  font-size: 12px;
  margin-top: 5px;
  padding-left: 2px;
}

.form-group.error .error-msg {
  display: block;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-row .form-group {
  flex: 1;
}

/* ==========================================================================
   7. BOTÃO SUBMIT
   ========================================================================== */

#btnLogin,
#btnCriar {
  width: 100%;
  padding: 14px;
  margin-top: 10px;
  background: var(--primary-gradient);
  border: none;
  border-radius: 8px;
  color: #fff;
  font-family: 'diodrum', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.3s, transform 0.2s;
}

#btnLogin:hover,
#btnCriar:hover {
  opacity: 0.88;
  transform: translateY(-2px);
}

#btnLogin:disabled,
#btnCriar:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ==========================================================================
   8. LINKS DO FORMULÁRIO
   ========================================================================== */

.form-links {
  margin: 4px 0 16px;
  font-size: 13px;
}

.form-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.25s;
}

.form-links a:hover {
  color: var(--primary-color);
}

.btn-link {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  color: white;
  text-align: center;
  text-decoration: none;
  transition: background 0.25s;
}

.btn-link:hover {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 560px) {
  .login-box {
    max-width: calc(100% - 24px);
    padding: 28px 20px;
  }

  .form-row {
    flex-direction: column;
    gap: 0;
  }
}
/* ==========================================================================
   9. INPUTS DE CÓDIGO 2FA
   ========================================================================== */

   .code-inputs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 24px;
  }
  
  .code-input {
    width: 48px;
    min-width: 48px;
    max-width: 48px;
    height: 56px;
    flex-shrink: 0;
    box-sizing: border-box;
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    font-family: 'diodrum', sans-serif;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: #fff;
    outline: none;
    transition: border-color 0.3s, background 0.3s;
    caret-color: var(--primary-color);
  }
  
  .code-input:focus {
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.11);
  }
