:root {
  --blue-50: #eff6ff;
  --blue-100: #dbeafe;
  --blue-200: #bfdbfe;
  --blue-400: #60a5fa;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-700: #374151;
  --gray-900: #111827;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--blue-50);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── NAVBAR ── */
nav {
  background: var(--white);
  border-bottom: 1px solid var(--blue-100);
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 8px rgba(59, 130, 246, 0.07);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-logo {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--blue-600);
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}

.nav-logo .logo-icon {
  width: 32px;
  height: 32px;
  background: var(--blue-600);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo .logo-icon svg {
  fill: white;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray-500);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
}

.nav-links a:hover {
  background: var(--blue-50);
  color: var(--blue-600);
}

.nav-links a.active {
  background: var(--blue-100);
  color: var(--blue-600);
  font-weight: 600;
}

/* ── PAGE LAYOUT ── */
.page {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem;
}

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: 20px;
  box-shadow:
    0 4px 6px rgba(59, 130, 246, 0.06),
    0 20px 60px rgba(59, 130, 246, 0.10);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-banner {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--blue-400) 100%);
  padding: 2rem 2.2rem 1.8rem;
  position: relative;
  overflow: hidden;
}

.card-banner::before,
.card-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.card-banner::before {
  width: 180px;
  height: 180px;
  right: -50px;
  top: -60px;
}

.card-banner::after {
  width: 100px;
  height: 100px;
  right: 60px;
  bottom: -40px;
}

.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 600;
  letter-spacing: 0.3px;
  margin-bottom: 1rem;
  position: relative;
}

.banner-badge .dot {
  width: 7px;
  height: 7px;
  background: #86efac;
  border-radius: 50%;
}

.card-banner h1 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 1.7rem;
  color: var(--white);
  line-height: 1.2;
  position: relative;
}

.card-banner p {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.82);
  margin-top: 0.4rem;
  position: relative;
}

/* ── FORM ── */
.card-body {
  padding: 2rem 2.2rem 2.2rem;
}

.field {
  margin-bottom: 1.2rem;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
  letter-spacing: 0.2px;
}

.input-wrap {
  position: relative;
}

.input-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--blue-400);
  display: flex;
  align-items: center;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  color: var(--gray-900);
  background: var(--gray-50);
  border: 1.5px solid var(--blue-100);
  border-radius: 10px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

input::placeholder {
  color: var(--gray-400);
}

input:focus {
  border-color: var(--blue-400);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.btn-login {
  display: block;
  width: 100%;
  padding: 0.85rem;
  margin-top: 1.6rem;
  background: linear-gradient(135deg, var(--blue-600), var(--blue-500));
  color: var(--white);
  font-family: 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.42);
}

.btn-login:active {
  transform: translateY(0);
}

.divider {
  text-align: center;
  font-size: 0.78rem;
  color: var(--gray-400);
  margin-top: 1.4rem;
  position: relative;
}

.divider::before,
.divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--blue-100);
}

.divider::before { left: 0; }
.divider::after  { right: 0; }

.register-link {
  display: block;
  text-align: center;
  margin-top: 1.2rem;
  font-size: 0.84rem;
  color: var(--gray-500);
}

.register-link a {
  color: var(--blue-600);
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

/* ── FOOTER ── */
footer {
  text-align: center;
  padding: 1.2rem;
  font-size: 0.75rem;
  color: var(--gray-400);
}