:root {
  --ink: #171926;
  --muted: #777a8e;
  --border: #e5e6ed;
  --primary: #5b5ce2;
  --sidebar: #171824;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; color: var(--ink); font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }

.login-layout { display: grid; min-height: 100vh; grid-template-columns: minmax(440px, 46%) 1fr; }
.brand-panel { position: relative; display: flex; overflow: hidden; flex-direction: column; background: var(--sidebar); color: #fff; padding: 42px 54px; }
.brand-panel::before { position: absolute; top: -180px; left: -100px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(circle, rgba(91,92,226,.22), transparent 68%); content: ""; }
.brand-panel::after { position: absolute; right: -160px; bottom: -220px; width: 550px; height: 550px; border: 1px solid rgba(255,255,255,.055); border-radius: 50%; box-shadow: 0 0 0 70px rgba(255,255,255,.018), 0 0 0 140px rgba(255,255,255,.012); content: ""; }
.brand { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; }
.brand-logo, .mobile-brand-logo { display: block; width: 52px; height: 52px; object-fit: contain; filter: drop-shadow(0 10px 20px rgba(0,198,249,.16)); }
.brand strong { font-size: 17px; }
.brand small, .mobile-brand small { display: block; margin-top: 2px; color: #8d90a6; font-size: 10px; }
.brand-copy { position: relative; z-index: 1; max-width: 520px; margin: auto 0; }
.eyebrow { margin: 0 0 12px; color: #81839a; font-size: 11px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; }
.brand-copy h1 { margin: 0; font-size: clamp(38px, 4.2vw, 62px); letter-spacing: -2.6px; line-height: 1.06; }
.brand-copy > p:not(.eyebrow) { max-width: 480px; margin: 25px 0 0; color: #a2a4b5; font-size: 15px; line-height: 1.75; }
.copyright { position: relative; z-index: 1; margin: 0; color: #606276; font-size: 10px; }

.login-panel { display: grid; place-items: center; background: #f7f8fb; padding: 40px; }
.login-card { width: min(430px, 100%); border: 1px solid var(--border); border-radius: 20px; background: #fff; padding: 39px; box-shadow: 0 22px 70px rgba(31,34,55,.09); }
.mobile-brand { display: none; }
.lock-icon { display: grid; width: 46px; height: 46px; margin-bottom: 25px; place-items: center; border-radius: 13px; background: #eeeeff; color: var(--primary); }
.lock-icon svg { width: 22px; height: 22px; }
.login-card .eyebrow { margin-bottom: 8px; color: var(--primary); font-size: 9px; }
.login-card h2 { margin: 0; font-size: 27px; letter-spacing: -.8px; }
.login-card form { margin-top: 27px; }
label { display: block; margin-bottom: 8px; color: #4f5161; font-size: 10px; font-weight: 700; }
.email-field { display: flex; height: 48px; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 10px; background: #fafafe; padding: 0 13px; }
.email-field svg { width: 17px; flex: 0 0 auto; color: #999bad; }
.email-field input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: #464858; font: inherit; font-size: 11px; }
.email-field span { display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; background: #e5f7f1; color: #149276; font-size: 9px; }
.password-label { margin-top: 16px; }
.form-error { min-height: 17px; margin: 10px 0 0; color: #c2414c; font-size: 9px; line-height: 1.5; }
.form-error.success { color: #16836b; }
.login-button { display: flex; width: 100%; height: 48px; align-items: center; justify-content: center; gap: 12px; margin-top: 4px; border: 0; border-radius: 10px; background: var(--primary); box-shadow: 0 10px 24px rgba(91,92,226,.2); color: #fff; cursor: pointer; font-size: 11px; font-weight: 700; text-decoration: none; transition: 160ms ease; }
.login-button:hover { background: #4e4fd2; transform: translateY(-1px); box-shadow: 0 14px 28px rgba(91,92,226,.26); }
.login-button:disabled { cursor: wait; opacity: .65; transform: none; }
.login-button svg { width: 17px; }
.forgot-button { display: block; margin: 13px auto 0; border: 0; background: transparent; color: var(--primary); cursor: pointer; font-size: 9px; font-weight: 650; }
.security-note { display: flex; align-items: flex-start; gap: 10px; margin-top: 20px; border-radius: 10px; background: #f7f8fb; padding: 13px; }
.security-note svg { width: 18px; flex: 0 0 auto; color: #4b9c89; }
.security-note strong, .security-note span { display: block; }
.security-note strong { margin-bottom: 3px; color: #555767; font-size: 9px; }
.security-note span { color: #9294a3; font-size: 8px; line-height: 1.55; }

@media (max-width: 900px) {
  .login-layout { grid-template-columns: 1fr; }
  .brand-panel { display: none; }
  .login-panel { min-height: 100vh; padding: 24px; }
  .mobile-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 34px; }
  .mobile-brand-logo { width: 44px; height: 44px; }
  .mobile-brand strong { font-size: 15px; }
}

@media (max-width: 480px) {
  .login-panel { align-items: start; background: #fff; padding: 24px 18px; }
  .login-card { border: 0; padding: 14px 0; box-shadow: none; }
  .login-card h2 { font-size: 24px; }
}
