*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
:root{
  --bg:#080F1E;--bg2:#0D182E;--bg3:#132240;--card:#0F1C34;
  --border:#1E3254;--border2:#2A4373;
  --blue:#1E40AF;--blue-light:#3B82F6;--cyan:#06B6D4;--green:#10B981;--red:#EF4444;
  --text:#F3F4F6;--muted:#9CA3AF;--muted2:#6B7280;
  --rojo-efe:#C8102E;--azul-efe:#0B2D6B;
}
body{
  font-family:'Inter',sans-serif;
  background: radial-gradient(circle at top, var(--bg2) 0%, var(--bg) 100%);
  color:var(--text);
  min-height:100vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:20px;
}

.login-card{
  background:var(--card);
  border:1px solid var(--border);
  border-radius:20px;
  padding:40px 36px;
  width:100%;
  max-width:420px;
  text-align:center;
  box-shadow:0 25px 50px -12px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.login-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.7);
}

.logo-wrap{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:24px;}
.logo-wrap img{height:52px;background:#fff;border-radius:10px;padding:6px;box-shadow: 0 4px 12px rgba(0,0,0,0.15);}
.brand{text-align:left;}
.brand-name{font-size:18px;font-weight:700;color:#fff;line-height:1.2;letter-spacing: -0.025em;}
.brand-sub{font-size:12px;color:var(--muted);margin-top:2px;}

.accent-bar{height:4px;background:linear-gradient(90deg,var(--rojo-efe),var(--azul-efe),var(--cyan));border-radius:2px;margin-bottom:28px;}

.login-title{font-size:22px;font-weight:700;color:var(--text);margin-bottom:6px;letter-spacing: -0.025em;}
.login-sub{font-size:13px;color:var(--muted);margin-bottom:28px;line-height:1.5;}

/* Form styles */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}
.input-group {
  text-align: left;
}
.input-label {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
}
.login-form input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  width: 100%;
  box-sizing: border-box;
  transition: all 0.2s ease;
}
.login-form input:focus {
  outline: none;
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
  background: var(--bg2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--azul-efe) 0%, #1e3a8a 100%);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 13px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(15, 28, 52, 0.2);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #1e3a8a 0%, #172554 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(15, 28, 52, 0.3);
}
.btn-primary:active {
  transform: translateY(0);
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
  color: var(--muted2);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* Google button container */
#g-signin {
  display: flex;
  justify-content: center;
  margin-bottom: 10px;
  min-height: 40px;
}

.error-msg {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 13px;
  color: #F87171;
  margin-bottom: 20px;
  display: none;
  text-align: left;
  line-height: 1.4;
  animation: fadeIn 0.3s ease;
}
.error-msg.show { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer {
  font-size: 11px;
  color: var(--muted2);
  margin-top: 28px;
  line-height: 1.6;
}
