*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --blue:        #0a1628;
      --blue-mid:    #112240;
      --blue-light:  #1a3a6e;
      --orange:      #16A34A;
      --orange-dark: #15803d;
      --white:       #ffffff;
      --off-white:   #f4f6fb;
      --muted:       #637085;
      --border:      rgba(255,255,255,0.08);
      --font-display: 'DM Serif Display', Georgia, serif;
      --font-body:    'Bricolage Grotesque', sans-serif;
    }

    html, body {
      height: 100%;
      font-family: var(--font-body);
      background: var(--blue);
      color: var(--white);
      overflow: hidden;
    }

    /* ── Background ── */
    .bg {
      position: fixed; inset: 0; z-index: 0;
      background: radial-gradient(ellipse 80% 60% at 10% 20%, rgba(22,163,74,0.12) 0%, transparent 60%),
                  radial-gradient(ellipse 60% 80% at 90% 80%, rgba(26,58,110,0.6) 0%, transparent 70%),
                  linear-gradient(135deg, #060e1e 0%, #0a1628 50%, #0d1a2e 100%);
    }

    /* Grid lines */
    .grid-lines {
      position: fixed; inset: 0; z-index: 0;
      background-image:
        linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
      background-size: 60px 60px;
      mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 0%, transparent 100%);
    }

    /* Big decorative text */
    .deco-text {
      position: fixed;
      font-family: var(--font-display);
      font-size: clamp(10rem, 25vw, 20rem);
      font-style: italic;
      color: rgba(255,255,255,0.025);
      bottom: -3rem; right: -2rem;
      pointer-events: none; user-select: none;
      line-height: 1;
      z-index: 0;
    }

    /* Orb */
    .orb {
      position: fixed;
      border-radius: 50%;
      pointer-events: none;
      z-index: 0;
      filter: blur(80px);
      animation: drift 8s ease-in-out infinite alternate;
    }
    .orb-1 { width: 400px; height: 400px; background: rgba(22,163,74,0.1); top: -100px; left: -100px; animation-delay: 0s; }
    .orb-2 { width: 300px; height: 300px; background: rgba(26,58,110,0.4); bottom: -50px; right: 10%; animation-delay: -3s; }
    @keyframes drift { from { transform: translate(0,0); } to { transform: translate(30px, 20px); } }

    /* ── Layout ── */
    .page {
      position: relative; z-index: 1;
      min-height: 100vh;
      display: grid;
      grid-template-columns: 1fr 1fr;
    }

    /* Left panel */
    .left-panel {
      display: flex; flex-direction: column;
      justify-content: space-between;
      padding: 3rem;
      border-right: 1px solid var(--border);
    }

    .brand-logo {
      font-family: var(--font-display);
      font-size: 1.6rem;
      font-style: italic;
      color: var(--white);
      text-decoration: none;
      display: flex; align-items: center; gap: 0.4rem;
    }
    .brand-logo span { color: var(--orange); }

    .left-content { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 2rem 0; }

    .left-label {
      font-size: 0.7rem; font-weight: 700;
      letter-spacing: 0.14em; text-transform: uppercase;
      color: var(--orange); margin-bottom: 1.2rem;
      display: flex; align-items: center; gap: 0.5rem;
    }
    .left-label::before {
      content: ''; width: 24px; height: 2px; background: var(--orange);
    }

    .left-title {
      font-family: var(--font-display);
      font-size: clamp(2.4rem, 4vw, 3.6rem);
      font-style: italic;
      line-height: 1.1;
      color: var(--white);
      margin-bottom: 1.5rem;
    }
    .left-title .accent { color: var(--orange); }

    .left-desc {
      font-size: 0.9rem;
      color: rgba(255,255,255,0.45);
      line-height: 1.75;
      max-width: 380px;
    }

    .features {
      margin-top: 3rem;
      display: flex; flex-direction: column; gap: 1rem;
    }
    .feature {
      display: flex; align-items: center; gap: 0.9rem;
      font-size: 0.85rem;
      color: rgba(255,255,255,0.5);
    }
    .feature-icon {
      width: 36px; height: 36px; border-radius: 10px;
      background: rgba(22,163,74,0.1);
      border: 1px solid rgba(22,163,74,0.2);
      display: flex; align-items: center; justify-content: center;
      font-size: 0.95rem; flex-shrink: 0;
    }

    .left-footer {
      font-size: 0.75rem;
      color: rgba(255,255,255,0.2);
    }

    /* Right panel — login form */
    .right-panel {
      display: flex; align-items: center; justify-content: center;
      padding: 3rem;
    }

    .login-box {
      width: 100%;
      max-width: 400px;
    }

    .login-heading {
      font-family: var(--font-display);
      font-size: 2rem;
      font-style: italic;
      color: var(--white);
      margin-bottom: 0.5rem;
    }
    .login-sub {
      font-size: 0.85rem;
      color: rgba(255,255,255,0.4);
      margin-bottom: 2.5rem;
    }

    /* Form */
    .form-group {
      display: flex; flex-direction: column; gap: 0.5rem;
      margin-bottom: 1.2rem;
    }
    .form-group label {
      font-size: 0.72rem;
      font-weight: 700;
      letter-spacing: 0.1em;
      text-transform: uppercase;
      color: rgba(255,255,255,0.4);
    }

    .input-wrap {
      position: relative;
    }
    .input-icon {
      position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
      color: rgba(255,255,255,0.25); font-size: 1rem; pointer-events: none;
    }
    .form-group input {
      width: 100%;
      background: rgba(255,255,255,0.05);
      border: 1px solid rgba(255,255,255,0.1);
      border-radius: 10px;
      padding: 0.85rem 1rem 0.85rem 2.8rem;
      font-family: var(--font-body);
      font-size: 0.9rem;
      color: var(--white);
      outline: none;
      transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
    }
    .form-group input::placeholder { color: rgba(255,255,255,0.2); }
    .form-group input:focus {
      border-color: var(--orange);
      background: rgba(22,163,74,0.06);
      box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
    }

    .toggle-pass {
      position: absolute; right: 1rem; top: 50%; transform: translateY(-50%);
      background: none; border: none; cursor: pointer;
      color: rgba(255,255,255,0.25); font-size: 1rem;
      padding: 0; transition: color 0.2s;
    }
    .toggle-pass:hover { color: rgba(255,255,255,0.6); }

    .form-row-options {
      display: flex; justify-content: space-between; align-items: center;
      margin-bottom: 1.8rem;
    }
    .remember {
      display: flex; align-items: center; gap: 0.5rem;
      font-size: 0.8rem; color: rgba(255,255,255,0.4);
      cursor: pointer;
    }
    .remember input[type="checkbox"] {
      width: 16px; height: 16px; border-radius: 4px;
      accent-color: var(--orange);
      cursor: pointer;
    }
    .forgot-link {
      font-size: 0.8rem; color: var(--orange);
      text-decoration: none; transition: opacity 0.2s;
    }
    .forgot-link:hover { opacity: 0.75; }

    .btn-login {
      width: 100%;
      background: linear-gradient(135deg, var(--orange), #4ade80);
      color: #fff; border: none;
      padding: 0.95rem;
      border-radius: 12px;
      font-family: var(--font-body);
      font-size: 0.92rem; font-weight: 700;
      letter-spacing: 0.02em;
      cursor: pointer;
      box-shadow: 0 8px 28px rgba(22,163,74,0.35);
      transition: transform 0.2s, box-shadow 0.2s, opacity 0.2s;
      display: flex; align-items: center; justify-content: center; gap: 0.6rem;
    }
    .btn-login:hover {
      transform: translateY(-2px);
      box-shadow: 0 14px 36px rgba(22,163,74,0.5);
    }
    .btn-login:active { transform: translateY(0); }
    .btn-login.loading { opacity: 0.7; pointer-events: none; }

    .btn-login .spinner {
      width: 16px; height: 16px;
      border: 2px solid rgba(255,255,255,0.4);
      border-top-color: #fff;
      border-radius: 50%;
      animation: spin 0.7s linear infinite;
      display: none;
    }
    .btn-login.loading .spinner { display: block; }
    .btn-login.loading .btn-text { display: none; }

    @keyframes spin { to { transform: rotate(360deg); } }

    .divider {
      display: flex; align-items: center; gap: 1rem;
      margin: 1.8rem 0;
    }
    .divider::before, .divider::after {
      content: ''; flex: 1; height: 1px;
      background: rgba(255,255,255,0.08);
    }
    .divider span { font-size: 0.72rem; color: rgba(255,255,255,0.2); }

    .contact-hint {
      text-align: center;
      font-size: 0.82rem;
      color: rgba(255,255,255,0.3);
    }
    .contact-hint a { color: var(--orange); text-decoration: none; }
    .contact-hint a:hover { text-decoration: underline; }

    /* Error message */
    .error-msg {
      display: none;
      background: rgba(220,38,38,0.1);
      border: 1px solid rgba(220,38,38,0.3);
      border-radius: 8px;
      padding: 0.75rem 1rem;
      font-size: 0.82rem;
      color: #fca5a5;
      margin-bottom: 1.2rem;
      animation: shake 0.4s ease;
    }
    @keyframes shake {
      0%,100% { transform: translateX(0); }
      25% { transform: translateX(-6px); }
      75% { transform: translateX(6px); }
    }

    /* Responsive */
    @media (max-width: 900px) {
      html, body { overflow: auto; }
      .page { grid-template-columns: 1fr; }
      .left-panel { display: none; }
      .right-panel { padding: 2rem 1.5rem; min-height: 100vh; }
    }