:root {
  font-family: Inter, ui-rounded, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: #17106f;
  background: #f9f8ff;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { min-width: 320px; }
button, input { font: inherit; }
a { color: inherit; }

.login-page {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 5.5rem 1rem 7.5rem;
  background:
    radial-gradient(circle at 49% 9%, rgba(103, 76, 255, .34), transparent 23rem),
    radial-gradient(circle at 92% 20%, rgba(0, 203, 255, .28), transparent 26rem),
    linear-gradient(145deg, #6710f0 0%, #176cff 23%, #f7f5ff 42%, #fff 78%);
}

.login-card {
  position: relative;
  z-index: 3;
  width: min(100%, 730px);
  border-radius: 48px;
  padding: 54px 55px 76px;
  text-align: center;
  background: rgba(255, 255, 255, .965);
  box-shadow: 0 24px 70px rgba(32, 19, 120, .14);
}

.brand-art { display: block; width: min(335px, 60%); margin: -22px auto 0; mix-blend-mode: multiply; }
.intro { margin-top: -20px; }
.intro h1 { margin: 0; font-size: clamp(2rem, 4.7vw, 2.75rem); line-height: 1.15; letter-spacing: -.035em; }
.intro p { margin: .65rem 0 2.35rem; color: #666494; font-size: 1.28rem; }

#login-form { display: grid; gap: 1.3rem; }
.field {
  height: 84px;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  padding: 0 1.75rem;
  border: 2px solid #e4def6;
  border-radius: 27px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: #7253ff; box-shadow: 0 0 0 4px rgba(103, 70, 255, .1); }
.field > svg { width: 38px; height: 38px; flex: 0 0 auto; fill: none; stroke: #5a20ff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.field input { width: 100%; min-width: 0; border: 0; outline: 0; color: #17106f; background: transparent; font-size: 1.35rem; }
.field input::placeholder { color: #8f8bb5; opacity: 1; }
.show-password { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; padding: 0; border: 0; color: #8583ad; background: transparent; cursor: pointer; }
.show-password svg { width: 34px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed { display: none; }
.show-password[aria-pressed="true"] .eye-open { display: none; }
.show-password[aria-pressed="true"] .eye-closed { display: block; }

.login-button { height: 84px; margin-top: .45rem; border: 0; border-radius: 26px; color: #fff; background: linear-gradient(105deg, #e617df, #7117ff 48%, #00d8e9); box-shadow: 0 15px 24px rgba(77, 39, 226, .2); font-size: 1.55rem; font-weight: 700; cursor: pointer; transition: transform .16s, filter .16s; }
.login-button:hover { filter: saturate(1.12) brightness(1.04); transform: translateY(-1px); }
.login-button:active { transform: translateY(1px); }
.login-button:disabled { cursor: wait; filter: grayscale(.2); opacity: .72; }
.form-message { min-height: 0; margin: -.4rem 0 -1rem; color: #c61b66; font-size: .95rem; }
.form-message:empty { display: none; }
.form-message.success { color: #087f64; }
.forgot { display: inline-block; margin-top: 1.7rem; color: #5414ef; font-size: 1.2rem; text-decoration: none; }
.forgot:hover, .signup-copy a:hover { text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 2.2rem; margin: 2rem 2.5rem 1.3rem; color: #8e8ab5; font-size: 1.2rem; }
.divider::before, .divider::after { content: ""; height: 1.5px; flex: 1; background: #ded8ef; }
.google-button { width: 100%; height: 76px; display: flex; align-items: center; justify-content: center; gap: 1.7rem; border: 2px solid #dedced; border-radius: 23px; color: #17105e; background: #fff; box-shadow: 0 8px 16px rgba(37, 27, 105, .11); font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.google-button svg { width: 43px; height: 43px; flex: 0 0 auto; }
.google-button:hover { border-color: #bdb5e7; background: #fdfcff; }
.signup-copy { margin: 1.5rem 0 0; color: #6b6898; font-size: 1.12rem; }
.signup-copy a { margin-left: .35rem; color: #5414ef; font-weight: 650; text-decoration: none; }

.decor { position: absolute; z-index: 1; filter: drop-shadow(0 20px 20px rgba(72, 30, 218, .13)); }
.decor-left { top: -45px; left: -95px; width: 280px; height: 520px; border-radius: 39% 61% 43% 57% / 32% 39% 61% 68%; background: linear-gradient(150deg, #8e04ff, #4c15ed 55%, #ad3df2); transform: rotate(-8deg); }
.decor-right { top: 145px; right: -110px; width: 240px; height: 530px; border-radius: 61% 39% 58% 42% / 35% 66% 34% 65%; background: linear-gradient(145deg, #17e1ed, #0089ff 52%, #1048ef); }
.orb { position: absolute; z-index: 2; width: 29px; height: 29px; border-radius: 50%; background: linear-gradient(145deg, #eb29e7, #5d09e7); box-shadow: inset -5px -5px 9px rgba(41, 0, 174, .3), 0 7px 12px rgba(61, 30, 183, .18); }
.orb-one { top: 23%; left: 8%; }.orb-two { right: 8%; bottom: 13%; background: linear-gradient(145deg, #2edff1, #0758e7); }
.spark { position: absolute; z-index: 2; color: white; font-size: 2.8rem; line-height: 1; text-shadow: 0 5px 15px rgba(32, 70, 229, .18); }
.spark-one { top: 9%; right: 9%; }.spark-two { top: 19%; right: 8%; font-size: 4rem; }

.bottom-wave { position: absolute; z-index: 4; left: -5%; right: -5%; bottom: -100px; height: 250px; border-radius: 45% 55% 0 0 / 40% 45% 0 0; background: linear-gradient(105deg, #8c00f2, #e51fea 25%, #5c15f1 52%, #17d9ed 76%, #0574f2); transform: rotate(-1deg); box-shadow: 0 -12px 35px rgba(60, 54, 230, .1); }
.bottom-wave span { position: absolute; width: 62%; height: 88%; right: -4%; top: 25%; border-radius: 50% 0 0 0; background: linear-gradient(135deg, rgba(44, 233, 245, .65), rgba(35, 77, 239, .5)); transform: rotate(-5deg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (prefers-reduced-motion: no-preference) {
  .orb { animation: float 4s ease-in-out infinite; }
  .orb-two { animation-delay: -2s; }
  @keyframes float { 50% { transform: translateY(-9px); } }
}

/* Android and iPhone layout */
@media (max-width: 600px) {
  .login-page { align-items: start; padding: 2.75rem 1rem 5.8rem; background: radial-gradient(circle at 65% 4%, #327df6, transparent 16rem), linear-gradient(145deg, #6510ee 0 10rem, #f8f6ff 24rem, #fff 70%); }
  .login-card { width: 100%; max-width: 430px; min-height: calc(100svh - 6.2rem); padding: 1.65rem 1.35rem 4.5rem; border-radius: 32px; }
  .brand-art { width: min(235px, 70%); margin-top: -.6rem; }
  .intro { margin-top: -1.05rem; }
  .intro h1 { font-size: 1.7rem; }
  .intro p { margin: .4rem 0 1.55rem; font-size: .96rem; }
  #login-form { gap: .9rem; }
  .field { height: 62px; gap: .9rem; padding: 0 1rem; border-radius: 19px; }
  .field > svg { width: 27px; height: 27px; }
  .field input { font-size: 1rem; }
  .show-password { width: 34px; height: 34px; }
  .show-password svg { width: 27px; }
  .login-button { height: 62px; margin-top: .25rem; border-radius: 19px; font-size: 1.18rem; }
  .forgot { margin-top: 1.25rem; font-size: .98rem; }
  .divider { gap: 1rem; margin: 1.3rem .6rem .85rem; font-size: .95rem; }
  .google-button { height: 57px; gap: 1rem; border-radius: 18px; font-size: 1rem; }
  .google-button svg { width: 31px; height: 31px; }
  .signup-copy { font-size: .91rem; }
  .decor-left { width: 150px; height: 300px; left: -100px; top: -35px; }
  .decor-right { width: 135px; height: 350px; right: -100px; top: 135px; }
  .orb { width: 19px; height: 19px; }
  .orb-one { left: 2%; top: 25%; }
  .orb-two { right: 3%; bottom: 8%; }
  .spark { display: none; }
  .bottom-wave { height: 135px; bottom: -67px; }
}

@media (max-width: 600px) and (max-height: 720px) {
  .login-page { padding-top: 1.5rem; }
  .login-card { padding-top: 1rem; }
  .brand-art { width: 175px; }
  .intro p { margin-bottom: 1rem; }
  .field, .login-button { height: 54px; }
  .forgot { margin-top: .9rem; }
  .divider { margin-block: .75rem .55rem; }
  .google-button { height: 50px; }
  .signup-copy { margin-top: .75rem; }
}

@supports (padding: max(0px)) {
  @media (max-width: 600px) {
    .login-page { padding-top: max(2.75rem, env(safe-area-inset-top)); padding-bottom: max(5.8rem, env(safe-area-inset-bottom)); }
  }
  @media (max-width: 600px) and (max-height: 720px) {
    .login-page { padding-top: max(1.5rem, env(safe-area-inset-top)); }
  }
}

/* Android tablets and iPad layout */
@media (min-width: 601px) and (max-width: 1100px) {
  .login-page { padding: 5.5rem 3.5rem 8rem; }
  .login-card { width: min(100%, 730px); padding: 3.3rem 4rem 7rem; }
  .brand-art { width: 330px; }
}

@media (min-width: 1101px) {
  .login-page { padding-block: 5rem 8rem; }
  .login-card { transform: scale(.9); transform-origin: center; }
}

@media (min-width: 601px) and (orientation: landscape) and (max-height: 850px) {
  .login-page { padding-block: 2rem 5rem; }
  .login-card { width: min(92vw, 940px); padding: 2rem 3.5rem 3.5rem; display: grid; grid-template-columns: .78fr 1.22fr; column-gap: 3.5rem; align-items: center; text-align: center; }
  .brand-art { grid-row: 1 / span 6; width: 100%; margin: 0; }
  .intro { margin: 0; }
  .intro p { margin-bottom: 1.5rem; }
  .field, .login-button { height: 65px; }
  .forgot { margin-top: 1.15rem; }
  .divider { margin: 1.3rem 1rem .8rem; }
  .google-button { height: 58px; }
  .signup-copy { margin-top: .8rem; }
}
