:root {
  --ink: #07101f;
  --panel: rgba(8, 14, 28, 0.78);
  --panel-border: rgba(168, 188, 230, 0.18);
  --text: #f4f7ff;
  --muted: #9eb0cd;
  --line: rgba(158, 176, 205, 0.28);
  --accent: #3ec6c9;
  --accent-2: #6aa8ff;
  --danger: #ff7b8a;
  --danger-bg: rgba(255, 123, 138, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--text);
  background: #04080f;
}

.login-stage {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.35fr minmax(360px, 480px);
}

.login-visual {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
}
.login-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: drift 18s ease-in-out infinite alternate;
}
.login-visual-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(115deg, rgba(4, 10, 22, 0.28) 10%, rgba(4, 10, 22, 0.72) 58%, rgba(4, 10, 22, 0.92) 100%),
    linear-gradient(to top, rgba(4, 8, 15, 0.75), transparent 45%);
}
.login-visual-copy {
  position: relative;
  z-index: 1;
  max-width: 560px;
  padding: clamp(32px, 6vw, 72px);
  margin-top: auto;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}
.login-visual-copy .eyebrow {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}
.login-visual-copy h2 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.login-visual-copy p:last-child {
  margin: 0;
  max-width: 42ch;
  color: #d7e2f5;
  font-size: 16px;
  line-height: 1.55;
}

.login-panel {
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(700px 420px at 80% 0%, rgba(62, 198, 201, 0.14), transparent 55%),
    radial-gradient(600px 380px at 10% 100%, rgba(106, 168, 255, 0.12), transparent 50%),
    linear-gradient(180deg, #0a1426, #070d18 70%);
  border-left: 1px solid var(--panel-border);
}
.login-panel-inner {
  width: min(100%, 390px);
  display: grid;
  gap: 22px;
  padding: 28px 26px 24px;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  animation: rise 0.55s ease both;
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}
.mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #041018;
  background: linear-gradient(145deg, var(--accent), var(--accent-2));
  box-shadow: 0 10px 28px rgba(62, 198, 201, 0.35);
}
.brand-name {
  margin: 0 0 2px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.login-brand h1 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.login-lead {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

form { display: grid; gap: 14px; }
label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
input {
  width: 100%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder { color: #6f809c; font-weight: 500; }
input:focus {
  outline: none;
  border-color: rgba(62, 198, 201, 0.7);
  box-shadow: 0 0 0 3px rgba(62, 198, 201, 0.16);
  background: rgba(255, 255, 255, 0.06);
}

.form-error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--danger-bg);
  border: 1px solid rgba(255, 123, 138, 0.35);
  color: var(--danger);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
.login-btn {
  border: 0;
  border-radius: 999px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #041018;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), #5bb7ff 70%);
  box-shadow: 0 12px 28px rgba(62, 198, 201, 0.28);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.login-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.login-btn:disabled { opacity: 0.65; cursor: wait; transform: none; }
.login-foot {
  margin: 0;
  text-align: center;
  color: #70829f;
  font-size: 12px;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes drift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -1%, 0); }
}

@media (max-width: 980px) {
  .login-stage { grid-template-columns: 1fr; }
  .login-visual { min-height: 42vh; }
  .login-visual-copy {
    min-height: 42vh;
    padding: 28px 22px 34px;
  }
  .login-visual-copy h2 { font-size: clamp(28px, 7vw, 40px); }
  .login-panel {
    border-left: 0;
    border-top: 1px solid var(--panel-border);
    padding: 22px 16px 28px;
  }
}
