* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #f8fafc, #eef2ff);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  color: #1e293b;
}


/* =========================
   OCULTAR ELEMENTOS
========================= */

.hidden {
  display: none !important;
}


/* =========================
   CONTENEDOR LOGIN
========================= */

.view-container {
  width: 100%;
  max-width: 420px;
}


/* =========================
   TARJETA LOGIN
========================= */

#login-view {
  background: linear-gradient(
    135deg,
    #ffffff 0%,
    #fff7ed 50%,
    #f0fdf4 100%
  );

  padding: 35px 28px;
  border-radius: 24px;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.10);

  border: 1px solid rgba(255, 255, 255, 0.9);
}


/* =========================
   LOGO
========================= */

.logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;

  margin-bottom: 35px;
}

.logo-icon {
  width: 48px;
  height: 48px;

  flex-shrink: 0;

  color: #ea580c;
}

.logo-text {
  font-size: 1.35rem;
  color: #334155;
}

.logo-text strong {
  color: #ea580c;
}


/* =========================
   FORMULARIO
========================= */

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

.input-group {
  display: flex;
  flex-direction: column;
}

.input-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: #64748b;

  margin-bottom: 7px;
}

.input-group input {
  width: 100%;

  padding: 13px 15px;

  border-radius: 12px;
  border: 1px solid #fed7aa;

  background: rgba(255, 255, 255, 0.85);

  font-size: 0.95rem;
  color: #1e293b;

  outline: none;

  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}

.input-group input:focus {
  border-color: #ea580c;

  box-shadow:
    0 0 0 3px rgba(234, 88, 12, 0.10);
}


/* =========================
   OLVIDASTE CONTRASEÑA
========================= */

.forgot-password {
  text-align: right;
  margin-top: -5px;
}

.forgot-password a {
  color: #ea580c;
  font-size: 0.85rem;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}


/* =========================
   BOTÓN INGRESAR
========================= */

.btn-submit {
  width: 100%;

  padding: 14px;

  border: none;
  border-radius: 12px;

  background: #ea580c;
  color: white;

  font-size: 0.95rem;
  font-weight: 700;

  cursor: pointer;

  margin-top: 4px;

  transition:
    background 0.2s,
    transform 0.15s;
}

.btn-submit:hover {
  background: #c2410c;
}

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


/* =========================
   CONTACTO
========================= */

.contact-section {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;

  margin-top: 28px;

  color: #64748b;
  font-size: 0.85rem;
}


/* =========================
   FOOTER
========================= */

.footer-text {
  margin-top: 20px;

  text-align: center;

  font-size: 0.7rem;
  line-height: 1.5;

  color: #94a3b8;
}


/* =========================
   DASHBOARD
========================= */

.dashboard-view {
  width: 100%;
  max-width: 500px;

  background: linear-gradient(
    135deg,
    #ffffff,
    #fff7ed,
    #f0fdf4
  );

  padding: 28px;

  border-radius: 24px;

  box-shadow:
    0 20px 45px rgba(15, 23, 42, 0.10);

  border: 1px solid rgba(255, 255, 255, 0.9);
}


/* =========================
   CABECERA DASHBOARD
========================= */

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  margin-bottom: 22px;
}

.welcome-text {
  font-size: 0.85rem;
  color: #64748b;
}

.dashboard-header h2 {
  margin-top: 3px;

  font-size: 1.35rem;
  color: #1e293b;
}

.user-avatar {
  width: 45px;
  height: 45px;

  border-radius: 50%;

  background: #ea580c;
  color: white;

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

  font-weight: 700;
}


/* =========================
   SALDO
========================= */

.balance-card {
  background: linear-gradient(
    135deg,
    #ea580c,
    #f97316
  );

  color: white;

  padding: 25px;

  border-radius: 18px;

  margin-bottom: 22px;

  box-shadow:
    0 10px 20px rgba(234, 88, 12, 0.18);
}

.balance-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

.balance-amount {
  margin-top: 7px;

  font-size: 2rem;
  letter-spacing: -0.5px;
}

.balance-status {
  display: block;

  margin-top: 8px;

  font-size: 0.75rem;
  opacity: 0.85;
}


/* =========================
   OPCIONES
========================= */

.action-grid {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 10px;

  margin-bottom: 22px;
}

.action-card {
  min-height: 100px;

  background: rgba(255, 255, 255, 0.7);

  border: 1px solid #ffedd5;

  border-radius: 14px;

  display: flex;
  flex-direction: column;

  justify-content: center;
  align-items: center;

  gap: 8px;

  color: #475569;

  font-size: 0.82rem;
  font-weight: 600;

  cursor: pointer;

  transition:
    transform 0.2s,
    background 0.2s;
}

.action-card:hover {
  background: white;
  transform: translateY(-2px);
}

.action-icon {
  font-size: 1.5rem;
}


/* =========================
   CERRAR SESIÓN
========================= */

.logout-btn {
  width: 100%;

  padding: 12px;

  background: transparent;

  border: 1px solid #cbd5e1;

  border-radius: 11px;

  color: #64748b;

  font-weight: 600;

  cursor: pointer;

  transition:
    background 0.2s,
    color 0.2s;
}

.logout-btn:hover {
  background: #f8fafc;
  color: #334155;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 480px) {

  body {
    padding: 14px;
  }

  #login-view,
  .dashboard-view {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .logo-text {
    font-size: 1.15rem;
  }

  .balance-amount {
    font-size: 1.7rem;
  }

}
