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

:root {
  --bg: #010a0a;
  --fg: #fafafa;
  --primary: #078786;
  --link: #6dd7d6;
  --muted: rgba(182, 182, 182, 0.7);
  --line: rgba(250, 250, 250, 0.1);
  --glass: inset 2px 6px 0 -5px rgba(255, 255, 255, 0.9),
           inset 7px 6px 0 -7px rgba(255, 255, 255, 0.6),
           inset -8px -6px 0 -9px rgba(255, 255, 255, 0.5),
           inset 0 -8px 0 -7px rgba(255, 255, 255, 0.4);
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.glow {
  position: fixed;
  inset: 0 50% 0 0;
  pointer-events: none;
  background: radial-gradient(120% 100% at 0% 0%,
    rgba(7, 135, 134, 0.5) 0%,
    rgba(7, 135, 134, 0.2) 40%,
    transparent 70%);
}

.glass-btn {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(1px) saturate(180%) brightness(110%);
}
.glass-btn::after,
.control::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: var(--glass);
  opacity: 0.6;
  filter: blur(0.5px);
  pointer-events: none;
}

.lang {
  position: fixed;
  top: 24px;
  left: 24px;
  z-index: 10;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  background: transparent;
  cursor: pointer;
}

.page {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.left {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.form-wrap {
  width: 100%;
  max-width: 448px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.logo {
  display: block;
  height: 64px;
  width: auto;
  margin-bottom: 24px;
}

h1 {
  font-size: 24px;
  font-weight: 400;
  line-height: 32px;
  text-align: center;
  margin-bottom: 36px;
}

.fields {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field { display: flex; flex-direction: column; gap: 8px; }

label {
  font-size: 14px;
  font-weight: 500;
  line-height: 14px;
}

.control {
  position: relative;
  display: flex;
  align-items: center;
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(1px) saturate(180%) brightness(110%);
  transition: border-color 0.2s;
}
.control:focus-within { border-color: rgba(7, 135, 134, 0.6); }
.control.invalid { border-color: rgba(239, 68, 68, 0.7); }

.control input,
.control select {
  width: 100%;
  height: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  border-radius: inherit;
  color: var(--fg);
  font: inherit;
  font-size: 14px;
  padding: 0 24px 0 56px;
}
.control input::placeholder { color: var(--muted); }
.control:has(.eye) input { padding-right: 52px; }

.ico, .chev, .eye svg {
  fill: none;
  stroke: var(--primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ico {
  position: absolute;
  left: 20px;
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.phone-row { display: flex; gap: 14px; }
.grow { flex: 1; min-width: 0; }

.eye {
  position: absolute;
  right: 16px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  cursor: pointer;
  z-index: 1;
}
.eye svg { width: 18px; height: 18px; }
.eye.on svg { stroke: var(--link); }

.label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.forgot {
  font-size: 14px;
  color: var(--link);
  text-decoration: none;
}
.forgot:hover { text-decoration: underline; }

.remember {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 400;
  line-height: 18px;
  color: rgba(250, 250, 250, 0.8);
  cursor: pointer;
  user-select: none;
}
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember .box {
  width: 16px;
  height: 16px;
  border-radius: 99px;
  border: 1.5px solid var(--primary);
  display: grid;
  place-items: center;
  transition: background-color 0.15s;
}
.remember input:checked + .box { background: var(--primary); }
.remember input:checked + .box::after {
  content: "";
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: translateY(-1px) rotate(45deg);
}
.remember input:focus-visible + .box { outline: 2px solid var(--link); outline-offset: 2px; }

.error {
  font-size: 13px;
  color: #fca5a5;
  text-align: center;
}

.submit {
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  height: 50px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 21px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0.05) 40%, transparent 100%),
    rgba(7, 135, 134, 0.7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), inset 0 -1px 0 rgba(0, 0, 0, 0.15);
  color: #fff;
  font: inherit;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.2s;
  background-color: var(--primary);
}
.submit:hover { background-color: rgba(7, 135, 134, 0.8); }
.submit .label { position: relative; }
.shine {
  position: absolute;
  inset: 0;
  transform: translateX(-100%) skewX(-20deg);
  background: linear-gradient(to right, transparent 0%, rgba(255, 255, 255, 0.3) 50%, transparent 100%);
  transition: transform 0.7s ease;
  pointer-events: none;
}
.submit:hover .shine { transform: translateX(100%) skewX(-20deg); }
.submit:disabled { opacity: 0.7; cursor: progress; }

.terms {
  margin-top: 40px;
  font-size: 14px;
  line-height: 18px;
  color: var(--muted);
  text-align: center;
  max-width: 420px;
}
.terms a,
.signin {
  color: var(--link);
}
.terms a { text-decoration: underline; text-underline-offset: 2px; }

.signin {
  margin-top: 40px;
  font-size: 14px;
  text-decoration: none;
}
.signin:hover { text-decoration: underline; }

.right { padding: 16px 16px 16px 16px; }
.art {
  position: sticky;
  top: 16px;
  height: calc(100vh - 32px);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #000;
}
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 45%, rgba(7, 135, 134, 0.12), transparent 70%),
    linear-gradient(to bottom, transparent 70%, rgba(0, 0, 0, 0.55) 100%);
}
.art-img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 999px;
  background: rgba(7, 135, 134, 0.15);
  border: 1px solid rgba(7, 135, 134, 0.4);
  color: var(--link);
  font-size: 14px;
  backdrop-filter: blur(12px);
}

@media (max-width: 1023px) {
  .page { grid-template-columns: 1fr; }
  .right, .glow { display: none; }
  body {
    background:
      radial-gradient(120% 60% at 0% 0%, rgba(7, 135, 134, 0.35) 0%, transparent 70%),
      var(--bg);
    background-attachment: fixed;
  }
}
