:root {
  font-family: 'DM Sans', sans-serif;
  color: #f8fafc;
  background: #090d13;
  font-synthesis: none;
}

* { box-sizing: border-box; }

body { margin: 0; min-width: 320px; min-height: 100vh; }
button, input { font: inherit; }

.login-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  overflow: hidden;
  background: linear-gradient(125deg, #071a16, #123027, #44301b, #25180e, #0a201a);
  background-size: 400% 400%;
  animation: calm-gradient 24s ease-in-out infinite;
}

.login-page::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -25%;
  opacity: .5;
  background:
    radial-gradient(circle at 18% 25%, rgba(40, 208, 167, .24), transparent 26%),
    radial-gradient(circle at 78% 30%, rgba(242, 146, 62, .2), transparent 28%),
    radial-gradient(circle at 55% 85%, rgba(215, 174, 71, .12), transparent 30%);
  filter: blur(25px);
  animation: calm-lights 30s ease-in-out infinite alternate;
}

@keyframes calm-gradient {
  0%, 100% { background-position: 0% 45%; }
  50% { background-position: 100% 55%; }
}

@keyframes calm-lights {
  0% { transform: translate3d(-2%, -2%, 0) scale(1); }
  50% { transform: translate3d(3%, 2%, 0) scale(1.06); }
  100% { transform: translate3d(-1%, 4%, 0) scale(1.02); }
}

.visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 48px 7vw;
  background: radial-gradient(circle at 70% 20%, rgba(43, 210, 168, .12), transparent 32%), rgba(7, 14, 20, .48);
  border-right: 1px solid rgba(255,255,255,.06);
}

.grid {
  position: absolute; inset: 0;
  opacity: .13;
  background-image: linear-gradient(rgba(255,255,255,.09) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom right, black, transparent 75%);
}

.orb { position: absolute; border-radius: 50%; filter: blur(1px); }
.orb-one { width: 360px; height: 360px; right: -150px; top: 12%; border: 1px solid rgba(67, 231, 185, .25); box-shadow: inset 0 0 100px rgba(38, 215, 166, .06); }
.orb-two { width: 180px; height: 180px; left: 8%; bottom: -80px; background: rgba(34, 197, 151, .06); filter: blur(30px); }

.brand, .mobile-brand { z-index: 1; display: flex; align-items: center; gap: 13px; font-size: 13px; font-weight: 700; letter-spacing: .18em; }
.brand-mark { width: 31px; height: 31px; display: flex; align-items: end; gap: 3px; padding: 7px; border-radius: 9px; background: #32d6a3; box-shadow: 0 8px 30px rgba(50,214,163,.22); }
.brand-mark span { flex: 1; display: block; border-radius: 2px; background: #07130f; }
.brand-mark span:nth-child(1) { height: 45%; }
.brand-mark span:nth-child(2) { height: 100%; }
.brand-mark span:nth-child(3) { height: 70%; }

.visual-copy { z-index: 1; margin: auto 0; max-width: 620px; }
.eyebrow, .welcome { color: #35d7a5; font-size: 11px; font-weight: 700; letter-spacing: .2em; }
.visual-copy h1 { margin: 25px 0 24px; font-size: clamp(48px, 5vw, 76px); line-height: 1.02; letter-spacing: -.055em; }
.visual-copy h1 em { color: #39d9a8; font-style: normal; }
.visual-copy p { max-width: 440px; color: #8f9ba8; font-size: 17px; line-height: 1.7; }
.status-pill { z-index: 1; align-self: flex-start; display: flex; align-items: center; gap: 9px; color: #93a1ae; font-size: 12px; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: #35d7a5; box-shadow: 0 0 0 5px rgba(53,215,165,.1); }

.form-section { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 48px 9%; background: rgba(9, 14, 22, .68); backdrop-filter: blur(24px); }
.mobile-brand { display: none; align-self: flex-start; margin-bottom: 60px; }
.login-card { width: 100%; max-width: 430px; }
.form-heading { margin-bottom: 42px; }
.form-heading h2 { margin: 14px 0 10px; font-size: 30px; letter-spacing: -.035em; }
.form-heading p { margin: 0; color: #7d8996; font-size: 14px; line-height: 1.6; }

label { display: block; margin-bottom: 10px; color: #b8c1cb; font-size: 13px; font-weight: 600; }
.input-wrap { position: relative; margin-bottom: 25px; }
.input-wrap > svg { position: absolute; left: 17px; top: 50%; width: 19px; transform: translateY(-50%); }
.input-wrap svg { fill: none; stroke: #647180; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.input-wrap input { width: 100%; height: 56px; padding: 0 50px; color: #f4f7fa; outline: none; border: 1px solid #27313d; border-radius: 12px; background: #111821; transition: .2s ease; }
.input-wrap input::placeholder { color: #53606e; }
.input-wrap input:focus { border-color: #31c99b; box-shadow: 0 0 0 4px rgba(49,201,155,.08); background: #131c25; }
.password-row { display: flex; justify-content: space-between; align-items: baseline; }
.password-row a { color: #35d7a5; font-size: 12px; text-decoration: none; }
.show-password { position: absolute; top: 50%; right: 13px; width: 34px; height: 34px; padding: 7px; transform: translateY(-50%); border: 0; background: transparent; cursor: pointer; }
.show-password svg { width: 100%; }

.remember { display: inline-flex; align-items: center; gap: 10px; margin: -2px 0 28px; color: #8f9ba8; font-weight: 400; cursor: pointer; }
.remember input { appearance: none; width: 17px; height: 17px; margin: 0; border: 1px solid #394653; border-radius: 5px; background: #111821; }
.remember input:checked { border-color: #35d7a5; background: #35d7a5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2307110e' stroke-width='2.5' d='m5 10 3 3 7-7'/%3E%3C/svg%3E") center/14px; }

.submit-button { width: 100%; height: 56px; display: flex; justify-content: center; align-items: center; gap: 12px; color: #07120e; font-weight: 700; border: 0; border-radius: 12px; background: linear-gradient(135deg, #45e1b0, #28c997); box-shadow: 0 14px 35px rgba(40,201,151,.16); cursor: pointer; transition: .2s ease; }
.submit-button:hover { transform: translateY(-2px); box-shadow: 0 18px 38px rgba(40,201,151,.23); }
.submit-button:disabled { opacity: .65; cursor: wait; transform: none; }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.demo-message { height: 20px; margin: 16px 0 0; color: #35d7a5; font-size: 13px; text-align: center; }
.demo-message.error { color: #ff9b72; }
footer { margin-top: auto; padding-top: 60px; color: #4e5a67; font-size: 11px; }

@media (max-width: 820px) {
  .login-page { display: block; }
  .visual { display: none; }
  .form-section { min-height: 100vh; justify-content: flex-start; padding: 34px 24px; }
  .mobile-brand { display: flex; }
  .login-card { margin: auto 0; }
  footer { margin-top: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .login-page,
  .login-page::before { animation: none; }
}
