@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&display=swap');

:root {
  --bg: #07040f;
  --card: rgba(20, 12, 36, .88);
  --purple: #a855f7;
  --purple-light: #d58cff;
  --pink: #ec4899;
  --text: #faf7ff;
  --muted: #aaa2b7;
  --line: rgba(196, 132, 252, .18);
  --danger: #ff6b9d;
}

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

html, body {
  min-height: 100%;
}

body {
  font-family: 'Nunito', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

button, input {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.login-page {
  min-height: 100svh;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
  background:
    radial-gradient(circle at 50% 10%, rgba(139, 48, 212, .16), transparent 34%),
    radial-gradient(circle at 90% 90%, rgba(236, 72, 153, .08), transparent 28%),
    #07040f;
}

.brand{
    text-align: center;
}

.logo{
    width: 300px;
}

.ambient {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.ambient-1 {
  width: 220px;
  height: 220px;
  background: rgba(168, 85, 247, .12);
  top: -90px;
  left: -80px;
}

.ambient-2 {
  width: 260px;
  height: 260px;
  background: rgba(236, 72, 153, .07);
  right: -120px;
  bottom: -120px;
}

.login-card {
  width: min(100%, 440px);
  position: relative;
  z-index: 1;
  padding: 34px 28px 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(27, 16, 45, .94), rgba(12, 8, 23, .94));
  box-shadow:
    0 30px 80px rgba(0, 0, 0, .42),
    0 0 60px rgba(168, 85, 247, .07);
  backdrop-filter: blur(18px);
}

.welcome {
  text-align: center;
  margin-bottom: 27px;
}

.eyebrow {
  color: var(--purple-light);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  margin-bottom: 9px;
}

.welcome h2 {
  font-size: clamp(27px, 7vw, 34px);
  line-height: 1.12;
  letter-spacing: -.8px;
  font-weight: 900;
}

.subtitle {
  margin-top: 11px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.field {
  margin-bottom: 17px;
}

.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 7px;
  color: #ddd6e7;
}

.input-wrap {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 15px;
  border: 1px solid rgba(198, 145, 255, .18);
  border-radius: 15px;
  background: rgba(255, 255, 255, .035);
  transition: .2s ease;
}

.input-wrap:focus-within {
  border-color: rgba(194, 117, 255, .75);
  box-shadow: 0 0 0 4px rgba(168, 85, 247, .09);
}

.input-icon {
  width: 20px;
  color: var(--purple-light);
  text-align: center;
  font-weight: 900;
}

.input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: white;
  font-size: 15px;
}

.input-wrap input::placeholder {
  color: #777181;
}

.toggle-password {
  border: 0;
  background: transparent;
  color: #91889c;
  cursor: pointer;
  font-size: 16px;
  padding: 5px;
}

.error {
  display: block;
  color: var(--danger);
  font-size: 11px;
  margin-top: 5px;
  min-height: 14px;
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 20px;
  font-size: 12px;
}

.form-options a,
.register a {
  color: var(--purple-light);
  text-decoration: none;
  font-weight: 800;
}

.remember {
  color: #9f97a9;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
}

.remember input {
  position: absolute;
  opacity: 0;
}

.checkmark {
  width: 17px;
  height: 17px;
  border: 1px solid #645a70;
  border-radius: 5px;
  position: relative;
}

.remember input:checked + .checkmark {
  background: var(--purple);
  border-color: var(--purple);
}

.remember input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 11px;
  font-weight: 900;
}

.primary-btn,
.social-btn {
  width: 100%;
  height: 54px;
  border-radius: 15px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, opacity .2s ease;
}

.primary-btn {
  border: 1px solid rgba(226, 180, 255, .45);
  background: linear-gradient(100deg, #9339d9, #b44ff0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  font-weight: 900;
  font-size: 16px;
  box-shadow: 0 10px 30px rgba(168, 85, 247, .2);
}

.primary-btn b {
  font-size: 22px;
  font-weight: 500;
}

.primary-btn:hover {
  box-shadow: 0 13px 35px rgba(168, 85, 247, .32);
}

.primary-btn:active,
.social-btn:active {
  transform: scale(.985);
}

.divider {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 21px 0 17px;
  color: #756c80;
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: rgba(255,255,255,.09);
}

.social-btn {
  border: 1px solid rgba(255,255,255,.11);
  background: rgba(255,255,255,.035);
  color: #e9e3ef;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
}

.google-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: white;
  color: #4285f4;
  font-size: 13px;
  font-weight: 900;
}

.register {
  text-align: center;
  color: #837b8e;
  font-size: 12px;
  margin-top: 24px;
}

.register a {
  margin-left: 3px;
}

.slogan {
  position: relative;
  z-index: 1;
  color: #615a69;
  font-size: 11px;
  margin-top: 17px;
  text-align: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 25px;
  z-index: 20;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 13px;
  border: 1px solid rgba(210, 157, 255, .25);
  background: rgba(30, 18, 47, .96);
  color: white;
  font-size: 13px;
  box-shadow: 0 15px 40px rgba(0,0,0,.35);
  transition: .25s ease;
  white-space: nowrap;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

@media (max-width: 480px) {
  .login-page {
    padding: 18px 13px;
    justify-content: flex-start;
    padding-top: max(24px, env(safe-area-inset-top));
  }

  .login-card {
    margin-top: 3vh;
    padding: 27px 21px 22px;
    border-radius: 25px;
  }

  .brand {
    margin-bottom: 27px;
  }

  .welcome {
    margin-bottom: 23px;
  }

  .form-options {
    font-size: 11px;
  }

  .slogan {
    margin-bottom: env(safe-area-inset-bottom);
  }
}

@media (min-width: 700px) {
  .login-card {
    padding: 42px 38px 30px;
  }
}
