*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; font-family: 'DM Sans', -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }

body {
  background: #0a1628;
  color: #f1f5f9;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh;
  overflow: hidden;
}

.login-bg {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
}
.login-glow {
  position: absolute; border-radius: 50%;
  filter: blur(80px); opacity: 0.25;
}
.glow-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #6366f1, transparent 70%);
  top: -150px; left: -150px;
}
.glow-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
  bottom: -100px; right: -100px;
}

.login-wrap {
  position: relative; z-index: 1;
  width: 100%; max-width: 420px;
  padding: 20px;
}

.login-card {
  background: #111827;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.6);
  display: flex; flex-direction: column; gap: 28px;
}

/* Logo */
.login-logo {
  display: flex; align-items: center; gap: 12px;
}
.logo-icon {
  width: 44px; height: 44px;
  background: rgba(99,102,241,0.12);
  border: 1px solid rgba(99,102,241,0.3);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-name {
  font-family: 'Sora', sans-serif;
  font-size: 20px; font-weight: 800;
  background: linear-gradient(135deg, #fff 30%, #06b6d4);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.logo-sub { font-size: 11px; color: #64748b; margin-top: 1px; }

/* Heading */
.login-heading h1 {
  font-family: 'Sora', sans-serif;
  font-size: 22px; font-weight: 700; color: #f1f5f9;
  margin-bottom: 5px;
}
.login-heading p { font-size: 13.5px; color: #94a3b8; }

/* Form */
.login-form { display: flex; flex-direction: column; gap: 16px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.7px;
  color: #64748b;
}
.field-wrapper {
  position: relative;
  display: flex; align-items: center;
}
.field-icon {
  position: absolute; left: 12px; color: #475569;
  pointer-events: none;
}
.field-input {
  width: 100%;
  background: #1e293b;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  color: #f1f5f9;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  padding: 11px 12px 11px 38px;
  outline: none;
  transition: border-color 0.2s ease;
}
.field-input:focus { border-color: rgba(99,102,241,0.6); }
.field-input::placeholder { color: #475569; }
.field-eye {
  position: absolute; right: 10px;
  background: none; border: none; cursor: pointer;
  color: #475569; padding: 4px;
  transition: color 0.2s;
}
.field-eye:hover { color: #94a3b8; }

.login-error {
  display: none;
  background: rgba(248,113,113,0.1);
  border: 1px solid rgba(248,113,113,0.25);
  color: #f87171;
  font-size: 13px; padding: 10px 14px;
  border-radius: 8px;
}

.btn-login {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 50%, #06b6d4);
  border: none; border-radius: 10px;
  color: white; font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 600;
  padding: 13px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  margin-top: 4px;
}
.btn-login:hover:not(:disabled) { opacity: 0.9; transform: translateY(-1px); }
.btn-login:disabled { opacity: 0.6; cursor: not-allowed; }

/* Footer */
.login-footer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 11px; color: #334155;
}

/* Separador "o" + botón Google (OAuth) */
.login-sep {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0 2px; color: #94a3b8; font-size: 12px;
}
.login-sep::before, .login-sep::after {
  content: ''; flex: 1; height: 1px; background: #e2e8f0;
}
.btn-google {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; box-sizing: border-box;
  background: #fff; border: 1px solid #d8dee9; border-radius: 10px;
  color: #1f2937; font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 12px; margin-top: 8px;
  text-decoration: none; cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-google:hover { background: #f8fafc; border-color: #c4ccd8; transform: translateY(-1px); }
