:root {
  --ink: #07162b;
  --muted: #60718a;
  --line: #dbe5f2;
  --blue: #3164f4;
  --cyan: #18b8c7;
  --violet: #7655ee;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  padding: 24px;
  display: grid;
  place-items: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 15%, rgba(49,100,244,.17), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(24,184,199,.16), transparent 27%),
    #eef4fc;
}

button, input { font: inherit; }

.login-shell {
  width: min(1080px, 100%);
  min-height: 650px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.8);
  border-radius: 30px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 30px 90px rgba(21,45,84,.18);
}

.login-story {
  position: relative;
  padding: 46px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: white;
  background: linear-gradient(145deg, rgba(11,30,56,.97), rgba(18,45,76,.96)), #0b1e38;
}

.login-story::before,
.login-story::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
}

.login-story::before {
  width: 330px;
  height: 330px;
  right: -150px;
  top: -100px;
  background: linear-gradient(135deg, var(--violet), var(--cyan));
  opacity: .75;
}

.login-story::after {
  width: 250px;
  height: 250px;
  left: -130px;
  bottom: -80px;
  background: var(--blue);
  opacity: .24;
}

.login-brand,
.mobile-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.login-brand { position: relative; z-index: 1; }
.login-brand b, .mobile-brand b { display: block; letter-spacing: .08em; }
.login-brand small, .mobile-brand small { display: block; margin-top: 3px; color: #a9bad0; }

.login-mark {
  width: 54px;
  height: 54px;
  padding: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 17px;
  background: rgba(255,255,255,.1);
}

.login-mark i {
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(to top, #7b5cff, #35d7df);
}

.login-mark i:nth-child(1) { height: 16px; }
.login-mark i:nth-child(2) { height: 29px; }
.login-mark i:nth-child(3) { height: 22px; }
.login-mark i:nth-child(4) { height: 34px; }

.story-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
}

.story-label,
.form-label {
  color: #5edbe2;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .18em;
}

.story-copy h1 {
  max-width: 500px;
  margin: 18px 0;
  font-size: clamp(38px, 5vw, 60px);
  line-height: .98;
  letter-spacing: -.055em;
}

.story-copy p {
  max-width: 470px;
  color: #c3d0df;
  line-height: 1.75;
}

.story-points {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 11px;
}

.story-points span {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #dce7f4;
  font-size: 13px;
}

.story-points b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(255,255,255,.1);
  color: #66e1e5;
}

.login-panel {
  padding: 44px;
  display: flex;
  align-items: center;
}

.login-card { width: min(420px, 100%); margin: auto; }
.mobile-brand { display: none; margin-bottom: 30px; }
.mobile-brand .login-mark { background: #0e223e; }
.form-label { color: var(--blue); }

h2 {
  margin: 10px 0 0;
  font-size: 35px;
  letter-spacing: -.045em;
}

.form-intro {
  margin: 11px 0 24px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.message {
  margin-bottom: 18px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
}

.message.error { color: #9f1239; border: 1px solid #fecdd3; background: #fff1f2; }
.message.warning { color: #854d0e; border: 1px solid #fde68a; background: #fffbeb; }

form { display: grid; }
label { margin: 0 0 7px; color: #30425b; font-size: 13px; font-weight: 800; }
label + .input-wrap { margin-bottom: 16px; }

.input-wrap { position: relative; }
.input-wrap > span {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #93a3b8;
  font-size: 12px;
  font-weight: 900;
}

input {
  width: 100%;
  height: 52px;
  padding: 0 52px 0 43px;
  border: 1px solid var(--line);
  border-radius: 15px;
  outline: none;
  color: var(--ink);
  background: #f9fbfe;
}

input:focus {
  border-color: rgba(49,100,244,.65);
  box-shadow: 0 0 0 4px rgba(49,100,244,.11);
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  height: 36px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  color: var(--blue);
  background: transparent;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
}

.password-toggle:hover { background: #eaf0ff; }

.submit-button {
  min-height: 52px;
  margin-top: 5px;
  border: 0;
  border-radius: 15px;
  color: white;
  background: linear-gradient(125deg, var(--violet), var(--blue) 55%, var(--cyan));
  box-shadow: 0 16px 34px rgba(49,100,244,.25);
  font-weight: 900;
  cursor: pointer;
}

.submit-button:hover { filter: brightness(.96); transform: translateY(-1px); }
.link-submit { padding: 16px; display: block; text-align: center; text-decoration: none; }

.security-note {
  margin: 20px 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--muted);
  background: #f7fafe;
  font-size: 12px;
  line-height: 1.55;
}

footer { color: #98a6b8; text-align: center; font-size: 11px; }

@media (max-width: 820px) {
  body { padding: 12px; }
  .login-shell { min-height: auto; grid-template-columns: 1fr; }
  .login-story { display: none; }
  .login-panel { padding: 32px 21px; }
  .mobile-brand { display: flex; }
  h2 { font-size: 30px; }
}

