body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  position: relative;
  overflow: hidden;
}

body::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(79,110,247,.18) 0%, transparent 70%);
  top: -100px; left: -100px;
  pointer-events: none;
}
body::after {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(124,58,237,.14) 0%, transparent 70%);
  bottom: -80px; right: -80px;
  pointer-events: none;
}

.card {
  background: rgba(255,255,255,.98);
  border-radius: 22px;
  padding: 48px 44px 44px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 64px rgba(0,0,0,.32), 0 4px 16px rgba(0,0,0,.12);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,.15);
}

.icon-wrap {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #4f6ef7 0%, #7c3aed 100%);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px;
  box-shadow: 0 8px 24px rgba(79,110,247,.35);
}
.icon-wrap svg { width: 28px; height: 28px; fill: #fff; }

h1 {
  text-align: center;
  font-size: 1.7rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 6px;
  letter-spacing: -.4px;
}
.subtitle {
  text-align: center;
  color: #64748b;
  font-size: .9rem;
  margin-bottom: 34px;
}

.alert {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  border-radius: 10px;
  padding: 11px 14px;
  font-size: .875rem;
  margin-bottom: 22px;
}

.field { margin-bottom: 20px; }
label {
  display: block;
  font-size: .83rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 7px;
}

.input-wrap { position: relative; }

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 11px;
  font-size: .95rem;
  color: #0f172a;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  background: #fff;
  font-family: inherit;
}
input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  border-color: #4f6ef7;
  box-shadow: 0 0 0 3px rgba(79,110,247,.14);
}
input::placeholder { color: #94a3b8; }

.eye-btn {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: #94a3b8; display: flex; align-items: center;
  transition: color .15s;
}
.eye-btn:hover { color: #4f6ef7; }

.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: #374151;
  cursor: pointer;
}
.remember input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #4f6ef7;
  cursor: pointer;
}

.forgot {
  font-size: .875rem;
  color: #4f6ef7;
  text-decoration: none;
  font-weight: 600;
}
.forgot:hover { text-decoration: underline; }

.btn-login {
  width: 100%;
  padding: 14px;
  background: linear-gradient(135deg, #4f6ef7 0%, #3b56d9 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity .15s, box-shadow .15s;
  box-shadow: 0 4px 16px rgba(79,110,247,.35);
  font-family: inherit;
  letter-spacing: .1px;
}
.btn-login:hover {
  opacity: .92;
  box-shadow: 0 6px 20px rgba(79,110,247,.45);
}

.footer-note {
  text-align: center;
  margin-top: 24px;
  font-size: .78rem;
  color: #94a3b8;
}
