:root {
  --bg-1: #000000;
  --bg-2: #292929;
  --card: rgba(7, 7, 7, 0.8);
  --card-border: rgba(184, 174, 148, 0.2);
  --primary: #755b04;
  --primary-dark: #e7bd00;
  --text: #e5e7eb;
  --muted: #eceff1;
  --danger: #ef4444;
  --success: #22c55e;
  
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  
}

body {
  position: relative;
  font-family: "Inter", sans-serif;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, var(--bg-1), var(--bg-2));
  color: var(--text);
  overflow: hidden;
}

#starfield {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(126, 86, 255, 0.18), transparent 22%),
    radial-gradient(circle at 80% 25%, rgba(59, 130, 246, 0.14), transparent 18%),
    radial-gradient(circle at 50% 80%, rgba(244, 114, 182, 0.12), transparent 22%),
    linear-gradient(135deg, #02040b 0%, #090d1d 38%, #111827 100%);
}

.login-container {
  position: relative;
  z-index: 1;
  width: 600px !important;
  margin: 0 auto;
  padding: 24px;
  display: grid;
  place-items: center;
  min-height: 100vh;
}



.login-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #60a5fa, #2563eb);
  color: #fff;
  font-weight: 700;
}


.logo img {
  width: 50px;
  height: 50px;
  border-radius: 10px;
}
h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-bottom: 8px;
}

.subtitle {
  color: var(--muted);
  margin-bottom: 24px;
}

.input-group {
  margin-bottom: 18px;
}

label {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: #dbeafe;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.5);
  color: var(--text);
  font-size: 1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

input::placeholder {
  color: #8392a8;
}

input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(136, 135, 131, 0.2);
}

.error-message {
  display: block;
  min-height: 18px;
  color: var(--danger);
  font-size: 0.78rem;
  margin-top: 6px;
}

.options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 4px 0 22px;
  font-size: 0.86rem;
}

.remember-me {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
}

.remember-me input {
  accent-color: var(--primary);
}

.options-row a {
  color: #fef2bf;
  text-decoration: none;
}

.link-ayuda {
  display: block;
  margin-top: 12px;
  text-align: center;
  color: #bfdbfe;
  text-decoration: none;
  font-size: 0.88rem;
}

.options-row a:hover {
  text-decoration: underline;
}

.login-btn {
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-1px);
  background: #3b3b3b;
}

.login-message {
  min-height: 22px;
  margin-top: 16px;
  font-size: 0.9rem;
  text-align: center;
}

.login-message.success {
  color: var(--success);
}

.login-message.error {
  color: var(--danger);
}

.dashboard-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #0f172a, #111827);
  padding: 24px;
}

.dashboard-card {
  width: min(100%, 720px);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 32px;
 
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.dashboard-header h1 {
  margin: 0;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #dbeafe;
  font-size: 0.85rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(140px, 1fr));
  gap: 18px;
}

.stat-card {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  padding: 20px;
}

.stat-card h3 {
  color: var(--muted);
  font-size: 0.86rem;
  margin-bottom: 8px;
}

.stat-card strong {
  font-size: 1.8rem;
}

.logout-btn {
  margin-top: 24px;
  padding: 12px 18px;
  border: none;
  border-radius: 12px;
  background: #ef4444;
  color: white;
  cursor: pointer;
  font-weight: 600;
}

.report-shell {
  width: 100%;
  min-height: 100vh;
  display: block;
  background: linear-gradient(135deg, #020202, #272727);
  padding: 24px;
}

.report-card {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(7, 7, 7, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.45);
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.report-header h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
}

.report-frame {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: 16px;
  overflow: hidden;
}

.report-frame iframe {
  display: block;
  width: 100%;
  height: 78vh;
  min-height: 620px;
  border: 0;
  background: #fff;
}

@media (max-width: 480px) {
  .login-card {
    padding: 24px 18px;
  }

  .options-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .report-header {
    flex-direction: column;
    align-items: flex-start;
  }
}
