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

:root {
  --purple-dark: #5038C8;
  --purple: #9810FA;
  --main: #500EAF;
  --text: #1a1a2e;
  --text-mid: #4b5563;
  --text-light: #9ca3af;
  --white: #ffffff;
  --bg-input: #f3f4f6;
  --border: #e5e7eb;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 12px 48px rgba(0, 0, 0, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Satoshi', sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--white);
}

a {
  text-decoration: none;
}

/* ════════════════════════════════════════
   NAVBAR
════════════════════════════════════════ */
.login-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 62px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.login-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--purple);
}

.login-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #9810FA, #500EAF);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.login-nav-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-nav-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--main);
  color: var(--main);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
  white-space: nowrap;
}

.login-nav-pill:hover {
  background: rgba(74, 108, 247, 0.06);
}

.login-hamburger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.login-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.desktop-only {
  display: flex;
}

.mobile-only {
  display: none;
}

/* ════════════════════════════════════════
   MAIN — sparkle gradient background
════════════════════════════════════════ */
.login-main {
  position: relative;
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px 60px;
  overflow: hidden;

  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(160, 120, 240, 0.50) 0%, transparent 65%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(130, 100, 220, 0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 90% 85%, rgba(150, 110, 230, 0.18) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f8f5ff 35%, #ede5fb 65%, #d8c8f5 100%);
}

.login-sparkle-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

@keyframes lgSparkle {

  0%,
  100% {
    opacity: 0.12;
    transform: scale(0.65);
  }

  50% {
    opacity: 0.9;
    transform: scale(1);
  }
}

/* ════════════════════════════════════════
   CONTENT
════════════════════════════════════════ */
.login-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.login-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  text-align: center;
  margin-bottom: 6px;
}

.login-sub {
  font-size: 0.9rem;
  color: var(--text-mid);
  text-align: center;
  margin-bottom: 20px;
  font-family: 'Inter', sans-serif;
}

/* ════════════════════════════════════════
   CARD
════════════════════════════════════════ */
.login-card {
  width: 100%;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 32px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Field */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
}

.login-input {
  width: 100%;
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  background: var(--bg-input);
  outline: none;
  transition: border-color 0.2s, background 0.2s;
}

.login-input::placeholder {
  color: var(--text-light);
}

.login-input:focus {
  border-color: var(--purple);
  background: var(--white);
}

.login-input.shake {
  animation: inputShake 0.4s ease;
}

@keyframes inputShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20%,
  60% {
    transform: translateX(-6px);
  }

  40%,
  80% {
    transform: translateX(6px);
  }
}

/* Send OTP button */
.login-otp-btn {
  width: 100%;
  padding: 15px;
  border-radius: 30px;
  background: linear-gradient(135deg, var(--main) 0%, var(--purple) 100%);
  color: var(--white);
  font-size: 1rem;
  font-weight: 700;
  font-family: inherit;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 6px 24px rgba(107, 72, 232, 0.38);
  transition: opacity 0.2s, transform 0.2s;
}

.login-otp-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

/* OR divider */
.login-or {
  display: flex;
  align-items: center;
  gap: 12px;
}

.login-or-line {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.login-or-text {
  font-size: 0.8rem;
  color: var(--text-light);
  font-weight: 500;
  white-space: nowrap;
}

/* Social buttons */
.login-social {
  display: flex;
  gap: 12px;
}

.login-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  border: 1px solid var(--border);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.login-social-btn:hover {
  background: #e9e9f0;
  border-color: #d1d5db;
}

/* Register link */
.login-register {
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-light);
}

.login-register-link {
  color: var(--main);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.login-register-link:hover {
  color: var(--purple);
}

/* ════════════════════════════════════════
   MOBILE  (≤768px)
════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Navbar */
  .login-nav {
    padding: 0 16px;
  }

  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  .login-nav-logo span {
    font-size: 1rem;
  }

  /* Main: white bg on mobile, sparkle only at bottom */
  .login-main {
    align-items: flex-start;
    justify-content: flex-start;
    padding: 32px 16px 60px;
    background:
      radial-gradient(ellipse 120% 30% at 50% 110%, rgba(160, 120, 240, 0.45) 0%, transparent 60%),
      linear-gradient(180deg, #ffffff 0%, #ffffff 60%, #f0eafc 80%, #ddd0f5 100%);
    min-height: calc(100vh - 62px);
  }

  .login-content {
    align-items: flex-start;
    max-width: 100%;
  }

  .login-title {
    font-size: 1.6rem;
    text-align: left;
  }

  .login-sub {
    font-size: 0.88rem;
    text-align: left;
    margin-bottom: 18px;
  }

  /* Card: no shadow on mobile, just border */
  .login-card {
    border-radius: 16px;
    box-shadow: var(--shadow);
    padding: 24px 18px 22px;
    gap: 18px;
  }

  .login-social-btn {
    font-size: 0.88rem;
    padding: 11px 10px;
  }

  .login-otp-btn {
    font-size: 0.95rem;
    padding: 14px;
  }
}

@media (max-width: 380px) {
  .login-title {
    font-size: 1.4rem;
  }
}