@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #f4f8fb;
  font-family: "Noto Sans SC", "Manrope", sans-serif;
  color: #152033;
}

/* Left visual */
.auth-visual {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(700px 420px at 20% 10%, rgba(245, 158, 11, 0.28), transparent 55%),
    linear-gradient(145deg, #0b3b3a 0%, #0f766e 42%, #0369a1 100%);
  padding: 40px 48px 48px;
  display: flex;
  align-items: stretch;
}
.auth-visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  pointer-events: none;
  animation: authFloat 8s ease-in-out infinite;
}
.auth-visual-glow.a {
  width: 260px;
  height: 260px;
  right: -40px;
  top: -30px;
  background: radial-gradient(circle, rgba(94, 234, 212, 0.45), transparent 70%);
}
.auth-visual-glow.b {
  width: 220px;
  height: 220px;
  left: -50px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(252, 211, 77, 0.35), transparent 70%);
  animation-delay: -3s;
}
@keyframes authFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes authRise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.auth-visual-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100vh - 88px);
  animation: authRise 0.7s ease both;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.04em;
}
.auth-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}
.auth-brand .mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.auth-visual-copy {
  padding: 48px 0;
}
.auth-visual-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(32px, 3.6vw, 44px);
  line-height: 1.18;
  letter-spacing: -0.035em;
  font-weight: 800;
}
.auth-visual-copy p {
  margin: 0;
  max-width: 400px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.82);
}

.auth-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.auth-metrics div {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  padding: 14px 12px;
  backdrop-filter: blur(10px);
}
.auth-metrics strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.auth-metrics span {
  font-size: 12px;
  opacity: 0.85;
}

.auth-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.auth-points li {
  position: relative;
  padding: 14px 16px 14px 42px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 14px;
  line-height: 1.5;
  backdrop-filter: blur(8px);
}
.auth-points li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 10px;
  height: 10px;
  margin-top: -5px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 0 4px rgba(251, 191, 36, 0.2);
}

/* Right form panel */
.auth-main {
  display: grid;
  place-items: center;
  padding: 40px 24px;
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(13, 148, 136, 0.08), transparent 55%),
    linear-gradient(180deg, #f7fbfd, #eef5f8);
}
.auth-card {
  width: min(440px, 100%);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e4eef4;
  border-radius: 24px;
  padding: 36px 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 24px 60px rgba(11, 42, 56, 0.08);
  backdrop-filter: blur(12px);
  animation: authRise 0.65s ease both;
}
.auth-brand-mobile {
  display: none;
  color: #0b1220;
  margin-bottom: 22px;
}

.auth-head h1 {
  margin: 0 0 8px;
  font-size: 30px;
  letter-spacing: -0.035em;
  font-weight: 800;
  color: #0b1220;
}
.auth-head p {
  margin: 0 0 24px;
  color: #5b6b81;
  font-size: 14px;
  line-height: 1.65;
}

.auth-alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #fff1f0;
  border: 1px solid #ffccc7;
  color: #cf1322;
  font-size: 13px;
}

.auth-form {
  display: grid;
  gap: 14px;
}
.auth-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.auth-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #3b4a5f;
}
.auth-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.auth-input-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.auth-ico {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #8aa0b5;
  display: grid;
  place-items: center;
  pointer-events: none;
  z-index: 1;
}
.auth-input {
  width: 100%;
  height: 48px;
  border: 1px solid #d5e0ea;
  border-radius: 14px;
  padding: 0 14px 0 42px;
  background: #fbfdff;
  color: #152033;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  box-sizing: border-box;
}
.auth-input.auth-input-password {
  padding-right: 46px;
}
.auth-eye {
  position: absolute !important;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  margin: 0;
  border: 0;
  background: transparent;
  color: #8aa0b5;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  z-index: 2;
  line-height: 0;
}
.auth-eye svg {
  display: none;
  flex-shrink: 0;
}
.auth-eye .eye-on { display: block; }
.auth-eye.is-open .eye-on { display: none; }
.auth-eye.is-open .eye-off { display: block; }
.auth-eye:hover {
  color: #0f766e;
  background: rgba(13, 148, 136, 0.08);
}
.auth-eye:focus-visible {
  outline: 2px solid rgba(13, 148, 136, 0.45);
  outline-offset: 1px;
}
.auth-input::placeholder { color: #9aadc0; }
.auth-input:hover { border-color: #b7c9d8; }
.auth-input:focus {
  outline: none;
  background: #fff;
  border-color: #0d9488;
  box-shadow: 0 0 0 4px rgba(13, 148, 136, 0.14);
}

.auth-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 4px;
  color: #5b6b81;
  font-size: 13px;
  user-select: none;
  cursor: pointer;
}
.auth-check input {
  width: 16px;
  height: 16px;
  accent-color: #0d9488;
}

.auth-submit {
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(120deg, #14b8a6, #0d9488);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(13, 148, 136, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}
.auth-submit:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 18px 34px rgba(13, 148, 136, 0.34);
}
.auth-submit-accent {
  background: linear-gradient(120deg, #f59e0b, #ea580c);
  box-shadow: 0 14px 30px rgba(234, 88, 12, 0.28);
}
.auth-submit-accent:hover {
  box-shadow: 0 18px 34px rgba(234, 88, 12, 0.34);
}

.auth-demo {
  margin-bottom: 18px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, #eefcf9, #f0f9ff);
  border: 1px solid #c7ece8;
}
.auth-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  gap: 8px;
}
.auth-demo-head span {
  font-size: 13px;
  font-weight: 700;
  color: #0f5660;
}
.auth-demo-head em {
  font-style: normal;
  font-size: 12px;
  color: #5b6b81;
}
.auth-demo-list {
  display: grid;
  gap: 8px;
}
.auth-demo-item {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title code"
    "email code";
  gap: 2px 12px;
  align-items: center;
  text-align: left;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(13, 148, 136, 0.16);
  background: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s, transform 0.18s;
  color: inherit;
  font: inherit;
}
.auth-demo-item:hover,
.auth-demo-item.active {
  border-color: #0d9488;
  box-shadow: 0 8px 18px rgba(13, 148, 136, 0.12);
  transform: translateY(-1px);
}
.auth-demo-item strong {
  grid-area: title;
  font-size: 13px;
  color: #0b1220;
}
.auth-demo-item span {
  grid-area: email;
  font-size: 12px;
  color: #5b6b81;
}
.auth-demo-item code {
  grid-area: code;
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
  background: #e6f7f5;
  border-radius: 999px;
  padding: 4px 10px;
}

.auth-foot {
  margin-top: 22px;
  text-align: center;
  color: #5b6b81;
  font-size: 13px;
}
.auth-foot a {
  color: #0f766e;
  text-decoration: none;
  font-weight: 650;
}
.auth-foot a:hover { text-decoration: underline; }
.auth-foot .sep {
  margin: 0 8px;
  color: #c0cdd8;
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-brand-mobile { display: inline-flex; }
  .auth-main { padding: 28px 16px; min-height: 100vh; }
  .auth-card { padding: 28px 22px; }
  .auth-row { grid-template-columns: 1fr; }
}
