@font-face {
  font-family: "Estedad Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/estedad-arabic.woff2") format("woff2-variations");
  unicode-range: U+0600-06FF, U+0750-077F, U+08A0-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: "Estedad Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/estedad-latin.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color: #edf8ff;
  background: #050914;
  font-family: "Estedad Variable", Vazirmatn, Tahoma, Arial, sans-serif;
  font-synthesis: none;
  color-scheme: dark;
  --accent: #73eaf4;
  --warm: #ffb28e;
  --muted: #8fa3b8;
  --line: rgb(132 215 234 / 17%);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgb(255 255 255 / 1.4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 1.4%) 1px, transparent 1px),
    radial-gradient(circle at 12% 15%, rgb(55 199 226 / 13%), transparent 28rem),
    radial-gradient(circle at 88% 88%, rgb(255 149 107 / 9%), transparent 30rem),
    #050914;
  background-size: 48px 48px, 48px 48px, auto, auto, auto;
}

button,
input {
  font: inherit;
}

button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.login-shell {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 100vh;
  place-items: center;
  overflow: hidden;
  padding: 24px;
}

.login-shell::before {
  position: absolute;
  z-index: -1;
  width: min(780px, 92vw);
  height: min(780px, 92vw);
  border: 1px solid rgb(114 228 241 / 5%);
  border-radius: 50%;
  box-shadow:
    0 0 0 90px rgb(92 218 238 / 1.4%),
    0 0 0 180px rgb(92 218 238 / 1%);
  content: "";
  animation: halo 12s ease-in-out infinite alternate;
}

.login-orb {
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  animation: float 14s ease-in-out infinite alternate;
}

.login-orb-one {
  top: -16rem;
  right: -7rem;
  background: rgb(45 203 231 / 18%);
}

.login-orb-two {
  bottom: -19rem;
  left: -8rem;
  background: rgb(255 145 104 / 14%);
  animation-delay: -6s;
}

.login-card {
  position: relative;
  width: min(100%, 460px);
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 5%), transparent 45%),
    rgb(9 20 35 / 79%);
  box-shadow:
    0 34px 100px rgb(0 0 0 / 48%),
    inset 0 1px 0 rgb(255 255 255 / 7%),
    0 0 55px rgb(69 213 236 / 7%);
  backdrop-filter: blur(26px) saturate(135%);
  animation: card-enter .7s cubic-bezier(.2, .8, .2, 1) both;
}

.login-card::before {
  position: absolute;
  top: 0;
  right: 15%;
  left: 15%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px var(--accent);
  content: "";
  opacity: .78;
}

.login-card::after {
  position: absolute;
  top: -90px;
  left: -75px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  filter: blur(75px);
  opacity: .08;
  pointer-events: none;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgb(138 215 232 / 11%);
}

.login-logo {
  display: grid;
  width: 58px;
  height: 58px;
  flex: none;
  overflow: hidden;
  place-items: center;
  border: 1px solid rgb(153 234 246 / 28%);
  border-radius: 19px;
  box-shadow:
    0 0 0 5px rgb(95 221 239 / 6%),
    0 13px 32px rgb(0 0 0 / 38%);
}

.login-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.login-brand p {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 6px;
  direction: ltr;
  letter-spacing: .11em;
}

.login-brand b {
  color: #eefcff;
  font-size: 13px;
  text-shadow: 0 0 18px rgb(110 231 245 / 40%);
}

.login-brand i {
  padding: 4px 8px;
  border: 1px solid rgb(255 202 178 / 42%);
  border-radius: 999px;
  color: #ffe0d1;
  background: linear-gradient(135deg, rgb(255 178 142 / 20%), rgb(255 178 142 / 9%));
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 12%), 0 0 18px rgb(255 178 142 / 14%);
  font-size: 9px;
  font-weight: 850;
  font-style: normal;
  letter-spacing: .12em;
  text-shadow: 0 0 12px rgb(255 202 178 / 38%);
}

.login-brand > div > span {
  color: #72869a;
  font-size: 10px;
}

.login-copy {
  margin: 29px 0 23px;
}

.login-copy h1 {
  margin: 0 0 8px;
  color: #f2fbff;
  font-size: clamp(27px, 7vw, 36px);
  letter-spacing: -.045em;
}

.login-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

.login-error {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: -3px 0 18px;
  padding: 11px 12px;
  border: 1px solid rgb(255 128 145 / 18%);
  border-radius: 14px;
  color: #ffadba;
  background: rgb(255 89 111 / 8%);
  font-size: 10px;
  line-height: 1.8;
}

.login-error span {
  display: grid;
  width: 23px;
  height: 23px;
  flex: none;
  place-items: center;
  border-radius: 8px;
  color: #07111f;
  background: #ff91a1;
  font-weight: 900;
}

.login-form {
  display: grid;
  gap: 17px;
}

.login-form label {
  display: grid;
  gap: 8px;
  color: #98aabd;
  font-size: 10px;
  font-weight: 750;
}

.login-input {
  position: relative;
  display: block;
}

.login-input svg {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: 15px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #71889e;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.login-input input {
  width: 100%;
  min-height: 54px;
  padding: 0 47px 0 15px;
  border: 1px solid rgb(139 211 230 / 16%);
  border-radius: 16px;
  color: #edf8ff;
  background: rgb(5 14 26 / 64%);
  box-shadow: inset 0 3px 11px rgb(0 0 0 / 23%);
  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    background .22s ease;
}

.login-input input:focus {
  border-color: rgb(110 231 245 / 52%);
  background: rgb(7 18 32 / 82%);
  box-shadow:
    0 0 0 4px rgb(110 231 245 / 7%),
    inset 0 3px 11px rgb(0 0 0 / 18%),
    0 0 25px rgb(72 211 235 / 6%);
  outline: none;
}

.login-form button {
  display: flex;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 4px;
  border: 0;
  border-radius: 16px;
  color: #06141d;
  background: linear-gradient(135deg, #9cf5f6, #55d9e9);
  box-shadow:
    0 15px 34px rgb(57 203 228 / 20%),
    0 0 24px rgb(91 227 240 / 11%),
    inset 0 1px 0 rgb(255 255 255 / 45%);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition:
    box-shadow .22s ease,
    filter .22s ease,
    transform .22s ease;
}

.login-form button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-form button:hover {
  filter: brightness(1.05);
  box-shadow:
    0 18px 42px rgb(57 203 228 / 28%),
    0 0 30px rgb(91 227 240 / 17%);
  transform: translateY(-2px);
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(18px) scale(.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes float {
  from {
    transform: translate3d(-3%, -2%, 0) scale(.96);
  }
  to {
    transform: translate3d(5%, 5%, 0) scale(1.06);
  }
}

@keyframes halo {
  from {
    opacity: .5;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1.03);
  }
}

@media (max-width: 520px) {
  .login-shell {
    align-items: center;
    padding: 14px;
  }

  .login-card {
    padding: 22px 19px;
    border-radius: 24px;
  }

  .login-brand {
    padding-bottom: 20px;
  }

  .login-logo {
    width: 51px;
    height: 51px;
    border-radius: 17px;
  }

  .login-copy {
    margin: 24px 0 20px;
  }

  .login-input input {
    min-height: 52px;
  }

  .login-form button {
    min-height: 54px;
  }

}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
