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

body {
  min-height: 100vh;
  background: #07070f;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Syne", sans-serif;
  overflow: hidden;
}

/* background objects */
.bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: drift 10s ease-in-out infinite;
  opacity: 0.22;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: #7f77dd;
  top: -120px;
  left: -100px;
  animation-delay: 0s;
}

.orb-b {
  width: 320px;
  height: 320px;
  background: #1d9e75;
  bottom: -80px;
  right: -60px;
  animation-delay: -4s;
}

.orb-c {
  width: 200px;
  height: 200px;
  background: #d4537e;
  top: 45%;
  right: 15%;
  animation-delay: -7s;
}

@keyframes drift {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -20px) scale(1.06);
  }
  66% {
    transform: translate(-15px, 25px) scale(0.96);
  }
}

/* star particles */
.particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.dot {
  position: absolute;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  animation: twinkle 3s ease-in-out infinite;
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(1);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.8);
  }
}

/* card wrapper:- animated gradient border */
.card-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  margin: 1rem;
  border-radius: 22px;
  padding: 2px;
  background: linear-gradient(135deg, #7f77dd, #1d9e75, #d4537e);
  background-size: 300% 300%;
  animation: border-spin 6s ease-in-out infinite;
}

@keyframes border-spin {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* card inner */
.card {
  background: #0e0e1c;
  border-radius: 20px;
  padding: 2.8rem 2.2rem 2.4rem;
  position: relative;
}

/* eyebrow label */
.eyebrow {
  font-family: "Syne Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  color: #7f77dd;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  display: block;
  width: 22px;
  height: 1px;
  background: #7f77dd;
}

/* heading  */
h1 {
  font-size: 30px;
  font-weight: 700;
  color: #f0eeff;
  line-height: 1.15;
  margin-bottom: 6px;
}

h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #afa9ec, #5dcaa5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.sub {
  font-size: 13px;
  color: #6b6b8a;
  margin-bottom: 2.2rem;
}

/* form fields */
.field {
  margin-bottom: 1.1rem;
}

.field-label {
  font-family: "Syne Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #5b5b78;
  text-transform: uppercase;
  display: block;
  margin-bottom: 7px;
}

.input-wrap {
  position: relative;
}

.input-wrap .icon-left {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #4a4a66;
  pointer-events: none;
  transition: color 0.2s;
  z-index: 1;
}

.input-wrap input:focus ~ .icon-left {
  color: #7f77dd;
}

.input-wrap input {
  width: 100%;
  height: 48px;
  background: #13132a;
  border: 1px solid #252540;
  border-radius: 10px;
  padding: 0 42px 0 42px;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  color: #e0dfff;
  outline: none;
  transition:
    border-color 0.2s,
    background 0.2s,
    box-shadow 0.2s;
}

.input-wrap input::placeholder {
  color: #3a3a58;
}

.input-wrap input:focus {
  border-color: #7f77dd;
  background: #161630;
  box-shadow: 0 0 0 3px rgba(127, 119, 221, 0.15);
}

/* password toggle eye icon */
.pw-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #4a4a66;
  cursor: pointer;
  transition: color 0.2s;
  z-index: 1;
}

.pw-toggle:hover {
  color: #7f77dd;
}

/* forgot password */
.forgot-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 8px;
  margin-bottom: 1.6rem;
}

.forgot {
  font-size: 12px;
  color: #5dcaa5;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.15s;
}

.forgot:hover {
  opacity: 0.65;
  text-decoration: underline;
}

/* login button */
.btn-login {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(90deg, #534ab7, #7f77dd);
  background-size: 200% 100%;
  color: #fff;
  font-family: "Syne", sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
  margin-bottom: 1.4rem;
  transition:
    transform 0.15s,
    background-position 0.4s;
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.18) 50%,
    transparent 100%
  );
  transform: translateX(-100%);
}

.btn-login:hover::before {
  transform: translateX(100%);
  transition: transform 0.55s ease;
}

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

.btn-login:active {
  transform: scale(0.98);
}

.btn-login:disabled {
  cursor: default;
}

/* blinking cursor */
.cursor-line {
  display: inline-block;
  width: 2px;
  height: 14px;
  background: #fff;
  margin-left: 3px;
  vertical-align: middle;
  animation: blink 0.9s step-end infinite;
}

@keyframes blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* divider */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1.2rem;
}

.div-line {
  flex: 1;
  height: 1px;
  background: #1e1e38;
}

.div-txt {
  font-family: "Syne Mono", monospace;
  font-size: 10px;
  color: #3a3a58;
  letter-spacing: 0.12em;
}

/* google button */
.btn-google {
  width: 100%;
  height: 46px;
  background: transparent;
  border: 1px solid #252540;
  border-radius: 10px;
  color: #8888aa;
  font-family: "Syne", sans-serif;
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 1.4rem;
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s;
}

.btn-google:hover {
  border-color: #534ab7;
  background: #13132a;
  color: #c0c0e0;
}

/* sign up row */
.signup {
  text-align: center;
  font-size: 13px;
  color: #4a4a66;
}

.signup a {
  color: #5dcaa5;
  text-decoration: none;
}

.signup a:hover {
  text-decoration: underline;
}

/* toast notification */
.toast {
  position: fixed;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: 8px;
  background: #0f6e56;
  border: 1px solid #1d9e75;
  color: #9fe1cb;
  font-family: "Syne Mono", monospace;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 20px;
  border-radius: 10px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 100;
}

.toast.err {
  background: #3a0e0e;
  border-color: #e24b4a;
  color: #f09595;
}

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