/* ==================================================
   BASE RESET
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Inter, system-ui, Arial, sans-serif;
}

body {
  min-height: 100vh;
  background: #020617;
  color: white;
  overflow-x: hidden;
}

/* ==================================================
   BACKGROUND (CLEAN, NO HEAVY DESIGN)
================================================== */
.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 25% 20%, rgba(59,130,246,0.25), transparent 55%),
    radial-gradient(circle at 75% 80%, rgba(14,165,233,0.18), transparent 55%);
  z-index: -1;
}

/* ==================================================
   HEADER
================================================== */
.header {
  position: sticky;
  top: 0;
  height: 64px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(15,23,42,0.7);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.55);
  z-index: 1000;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  height: 76px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-main {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand-sub {
  font-size: 0.7rem;
  opacity: 0.7;
}

.nav {
  display: flex;
  gap: 12px;
}

.nav a {
  padding: 8px 16px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  transition: all .25s ease;
}

.nav-outline {
  border: 1px solid rgba(255,255,255,0.35);
}

.nav-outline:hover {
  background: rgba(255,255,255,0.12);
}

.nav-primary {
  background: linear-gradient(90deg,#2563eb,#0ea5e9);
}

.nav-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(59,130,246,0.6);
}

/* ==================================================
   MAIN
================================================== */
.wrapper {
  min-height: calc(100vh - 64px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 400px;
  background: linear-gradient(
    145deg,
    rgba(255,255,255,0.14),
    rgba(255,255,255,0.04)
  );
  backdrop-filter: blur(22px);
  border-radius: 22px;
  padding: 32px;
  box-shadow: 0 40px 120px rgba(0,0,0,0.75);
  animation: fadeInUp .7s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  background: linear-gradient(90deg,#60a5fa,#22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  text-align: center;
  margin-top: 6px;
  font-size: 0.9rem;
  opacity: 0.75;
}

/* ==================================================
   FORM
================================================== */
input, button {
  width: 100%;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: none;
  outline: none;
  font-size: 15px;
}

input {
  background: rgba(255,255,255,0.08);
  color: white;
}

input::placeholder {
  color: rgba(255,255,255,0.55);
}

input:focus {
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 0 2px rgba(59,130,246,0.5);
}

button {
  background: linear-gradient(90deg,#2563eb,#0ea5e9);
  color: white;
  font-weight: 700;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(59,130,246,0.6);
}

/* ==================================================
   FLASH
================================================== */
.flash {
  background: rgba(239,68,68,0.2);
  padding: 10px;
  border-radius: 10px;
  margin-top: 14px;
  text-align: center;
  font-size: 0.85rem;
}

/* ==================================================
   FOOTER
================================================== */
.footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.75rem;
  opacity: 0.6;
}

/* ==================================================
   LOADER (SUBMIT ONLY)
================================================== */
.loader {
  display: none;
  margin-top: 16px;
  text-align: center;
}

.spinner {
  width: 28px;
  height: 28px;
  border: 3px solid rgba(255,255,255,0.25);
  border-top: 3px solid #38bdf8;
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ==================================================
   MOBILE
================================================== */
@media (max-width: 520px) {
  .header { padding: 0 14px; height: 58px; }
  .brand-sub { display: none; }
  .card { padding: 26px; }
}
