:root {
  color-scheme: light;
  --ink: #071827;
  --muted: #66758a;
  --subtle: #91a0b4;
  --line: rgba(15, 23, 42, 0.08);
  --blue: #0f6bff;
  --blue-dark: #004bd6;
  --surface: rgba(255, 255, 255, 0.82);
  --shadow: 0 34px 100px rgba(15, 23, 42, 0.13);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100svh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(15, 107, 255, 0.08), transparent 28%),
    radial-gradient(circle at 82% 32%, rgba(125, 92, 255, 0.1), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f8fbff 46%, #eef3ff 100%);
  color: var(--ink);
  font-family: "Inter", "Segoe UI", "Microsoft YaHei", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 107, 255, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 107, 255, 0.032) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 74%);
  content: "";
}

a {
  color: inherit;
  text-decoration: none;
}

.auth-page {
  position: relative;
  z-index: 1;
  display: grid;
  width: min(1320px, 100%);
  min-height: 100svh;
  grid-template-columns: minmax(0, 650px) minmax(390px, 480px);
  gap: clamp(64px, 6vw, 108px);
  align-items: center;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 76px);
}

.brand {
  position: fixed;
  top: 28px;
  left: clamp(28px, 5vw, 76px);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 999px;
  padding: 8px 13px 8px 9px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 14px 42px rgba(15, 23, 42, 0.07);
  font-size: 14px;
  font-weight: 1000;
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f6bff, #19c2ff);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 107, 255, 0.26);
}

.auth-visual {
  max-width: 650px;
  padding-top: 42px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 20px;
  border: 1px solid rgba(15, 107, 255, 0.14);
  border-radius: 999px;
  padding: 8px 13px;
  background: rgba(255, 255, 255, 0.66);
  color: var(--blue);
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

h1 {
  max-width: 640px;
  margin: 0;
  color: #071827;
  font-size: clamp(46px, 4.6vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.055em;
}

.auth-visual p:not(.eyebrow) {
  max-width: 600px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.82;
}

.visual-panel {
  position: relative;
  max-width: 650px;
  margin-top: 42px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 30px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(237, 244, 255, 0.68));
  box-shadow: 0 36px 110px rgba(15, 23, 42, 0.16);
}

.visual-panel::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28), transparent 42%);
  content: "";
}

.visual-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  opacity: 0.88;
  filter: saturate(0.92) contrast(0.98);
}

.visual-panel span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.82);
  color: #15243a;
  font-size: 14px;
  font-weight: 1000;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.14);
  backdrop-filter: blur(16px);
}

.auth-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 30px;
  padding: clamp(34px, 3.4vw, 48px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.78));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.auth-card h2 {
  margin: 0;
  color: #071827;
  font-size: 38px;
  letter-spacing: -0.04em;
  text-align: center;
}

.auth-card > p {
  margin: 12px 0 30px;
  color: var(--muted);
  line-height: 1.66;
  text-align: center;
}

.field {
  display: grid;
  gap: 9px;
  margin-top: 18px;
}

.field label {
  color: #1b2a3d;
  font-size: 14px;
  font-weight: 1000;
}

.field input {
  min-height: 54px;
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 15px;
  padding: 0 16px;
  background: rgba(248, 250, 253, 0.92);
  color: var(--ink);
  font: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.field input::placeholder {
  color: #9aa7ba;
}

.field input:focus {
  outline: 4px solid rgba(15, 107, 255, 0.12);
  border-color: rgba(15, 107, 255, 0.42);
  background: #fff;
}

.submit-button,
.browse-button {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 15px;
  font: inherit;
  font-weight: 1000;
}

.submit-button {
  min-height: 58px;
  margin-top: 28px;
  border: 0;
  background: linear-gradient(135deg, #0f6bff, #0056e8);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 20px 46px rgba(15, 107, 255, 0.28);
}

.browse-button {
  min-height: 54px;
  margin-top: 12px;
  border: 1px solid rgba(15, 107, 255, 0.16);
  background: rgba(15, 107, 255, 0.055);
  color: var(--blue);
}

.submit-button:hover,
.browse-button:hover {
  transform: translateY(-1px);
}

.form-note {
  min-height: 24px;
  margin: 18px 0 0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.switch-link {
  margin-top: 24px;
  color: var(--muted);
  text-align: center;
}

.switch-link a {
  color: var(--blue);
  font-weight: 1000;
}

.back-home {
  display: inline-flex;
  margin-top: 20px;
  color: var(--subtle);
  font-size: 14px;
}

@media (max-width: 920px) {
  .auth-page {
    grid-template-columns: 1fr;
    padding-top: 104px;
  }

  .auth-visual {
    display: none;
  }

  .brand {
    left: 24px;
  }
}

@media (max-width: 520px) {
  .auth-page {
    padding: 94px 18px 28px;
  }

  .auth-card {
    border-radius: 24px;
    padding: 28px 20px;
  }

  .auth-card h2 {
    font-size: 32px;
  }
}
