:root {
    --bg: #161D33;             /* page bg — lifted 2 shades */
    --bg-1: #1E2747;           /* card surfaces */
    --bg-2: #283358;           /* elevated */
    --bg-elevated: #303C68;    /* highest elevation (form card) */
    --bg-input: #11172A;       /* form inputs (recessed) */

    --border: rgba(255,255,255,0.07);
    --border-bright: rgba(255,255,255,0.15);
    --border-card: rgba(255,255,255,0.18);   /* a clear, defined edge */
    --border-blue: rgba(96,165,250,0.4);

    --text: #ECEFF7;
    --text-secondary: #A6AEC4;
    --text-muted: #757D98;

    --brand: #3B82F6;
    --brand-bright: #60A5FA;
    --brand-deep: #2563EB;

    --success: #22C55E;
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  body {
    font-family: 'Montserrat', sans-serif;
    background: var(--bg);
    color: var(--text);
    font-feature-settings: 'cv11', 'ss01', 'ss03';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    overflow-x: hidden;
  }
  a { text-decoration: none; color: inherit; }
  img { max-width: 100%; }

  body > #app-header + * {
    padding-top: 88px;
  }
  @media (max-width: 768px) {
    body > #app-header + * {
      padding-top: 76px;
    }
  }

  /* ============ BRAND ============ */
  .brand { display: inline-flex; align-items: center; gap: 10px; }
  .brand-icon {
    width: 32px; height: 32px;
    background-image: url('/assets/logo_img.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: brightness(0) invert(1);
  }
  .brand-text {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1;
  }
  .brand-text .cv { color: var(--text); }
  .brand-text .applyr { color: var(--brand); }

  /* ============ SPLIT LAYOUT ============ */
  .split {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    min-height: 100vh;
  }

  /* ============ LEFT IMAGE PANEL ============ */
  /* Extra top/bottom padding shrinks the image card vertically without changing its width */
  .visual-panel { position: relative; padding: 60px 20px; }
  .visual-inner {
    position: relative;
    width: 100%; height: 100%;
    border-radius: 24px;
    overflow: hidden;
    background-color: var(--bg-1);
    background-image: url('/assets/Swati.jpg');
    background-size: cover;
    background-position: center 22%;
    border: 1px solid var(--border-card);
  }
  .visual-inner::before {
    content: '';
    position: absolute; inset: 0;
    background:
      linear-gradient(180deg, rgba(22,29,51,0.15) 0%, rgba(22,29,51,0.0) 35%, rgba(22,29,51,0.85) 100%),
      linear-gradient(135deg, rgba(59,130,246,0.08) 0%, transparent 50%, rgba(22,29,51,0.4) 100%);
  }

  .visual-top {
    position: absolute;
    top: 32px; left: 36px;
    z-index: 3;
  }
  .visual-top .brand-text .cv { color: #fff; }
  .visual-top .brand-text .applyr { color: var(--brand-bright); }

  .visual-stats {
    position: absolute;
    top: 32px; right: 36px;
    z-index: 3;
    display: flex; gap: 8px;
    flex-direction: column; align-items: flex-end;
  }
  .stat-pill {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px;
    background: rgba(30, 39, 71, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-card);
    border-radius: 100px;
    color: #fff;
    font-size: 12.5px; font-weight: 500;
    white-space: nowrap;
  }
  .stat-pill .num { font-weight: 700; color: var(--brand-bright); letter-spacing: -0.01em; }
  .stat-pill .star { color: #FBBF24; font-size: 11px; font-weight: 500; }
  .stat-pill .live-dot {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 4px rgba(34,197,94,0.2);
    animation: pulse 2s infinite;
  }
  @keyframes pulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(34,197,94,0.2); }
    50% { box-shadow: 0 0 0 6px rgba(34,197,94,0.1); }
  }

  .visual-bottom {
    position: absolute;
    bottom: 44px; left: 44px; right: 44px;
    z-index: 3;
    color: #fff;
  }
  .quote-icon {
    width: 36px; height: 36px;
    background: rgba(59,130,246,0.18);
    border: 1px solid var(--border-blue);
    color: var(--brand-bright);
    border-radius: 10px;
    display: inline-grid; place-items: center;
    font-size: 20px; font-weight: 800;
    margin-bottom: 20px;
    padding-top: 10px;
    line-height: 0.5;
  }
  .visual-bottom h2 {
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 600;
    max-width: 540px;
    margin-bottom: 28px;
    color: #fff;
  }
  .visual-bottom h2 .accent { color: var(--brand-bright); }
  .visual-attribution {
    display: flex; align-items: center; gap: 14px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.12);
    max-width: 440px;
  }
  .attribution-avatar {
    width: 44px; height: 44px; border-radius: 50%;
    background: linear-gradient(135deg, #60A5FA, #1E40AF);
    border: 2px solid rgba(255,255,255,0.18);
    flex-shrink: 0;
  }
  .attribution-text strong {
    display: block; font-size: 14.5px; font-weight: 600; color: #fff;
  }
  .attribution-text span {
    font-size: 13px; color: rgba(255,255,255,0.65);
    margin-top: 2px; display: block;
    font-weight: 500;
  }

  /* ============ RIGHT FORM PANEL ============ */
  .form-panel {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 28px 48px;
    background: var(--bg);
    position: relative;
    overflow: hidden;
  }
  .form-panel::before {
    content: '';
    position: absolute;
    top: 20%; right: -250px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(59,130,246,0.16), transparent 60%);
    pointer-events: none;
    z-index: 0;
  }
  .form-panel::after {
    content: '';
    position: absolute;
    bottom: -200px; left: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.09), transparent 60%);
    pointer-events: none;
    z-index: 0;
  }

  .form-top {
    position: relative; z-index: 2;
    display: flex; justify-content: flex-end; align-items: center;
    gap: 10px;
    font-size: 13.5px; color: var(--text-muted);
    font-weight: 500;
  }
  .form-top a {
    font-weight: 600; color: var(--text);
    padding: 7px 14px;
    border: 1px solid var(--border-bright);
    border-radius: 100px;
    transition: all 0.2s;
    background: var(--bg-1);
  }
  .form-top a:hover { border-color: rgba(255,255,255,0.25); background: var(--bg-2); }

  .form-wrap {
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0;
    position: relative; z-index: 2;
  }

  /* ============ FORM CARD — clearly elevated ============ */
  .form-card {
    width: 100%;
    max-width: 440px;
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-2) 100%);
    border: 1px solid var(--border-card);
    border-radius: 24px;
    padding: 40px 36px;
    position: relative;
    box-shadow:
      0 30px 80px -20px rgba(0,0,0,0.7),
      0 0 0 1px rgba(255,255,255,0.03),
      inset 0 1px 0 rgba(255,255,255,0.06);
  }
  .form-card::before {
    content: '';
    position: absolute;
    top: 0; left: 24px; right: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.25), transparent);
  }

  .form-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 5px 12px 5px 6px;
    background: rgba(59,130,246,0.12);
    border: 1px solid rgba(59,130,246,0.3);
    border-radius: 100px;
    font-size: 11.5px;
    color: var(--brand-bright);
    margin-bottom: 22px;
    font-weight: 500;
  }
  .form-eyebrow .dot {
    width: 7px; height: 7px;
    background: var(--brand);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--brand);
  }

  .form-card h1 {
    font-size: clamp(26px, 3vw, 30px);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 700;
    margin-bottom: 10px;
  }
  .form-card h1 .accent { color: var(--brand); }
  .form-card > .lede {
    font-size: 14.5px;
    color: var(--text-secondary);
    margin-bottom: 28px;
  }

  /* OAuth — 2 columns */
  .oauth-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 22px;
  }
  .oauth-btn {
    display: flex; align-items: center; justify-content: center;
    gap: 8px;
    padding: 11px 8px;
    background: var(--bg-1);
    border: 1px solid var(--border-bright);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    color: var(--text);
    cursor: pointer;
    transition: all 0.2s;
  }
  .oauth-btn:hover {
    background: var(--bg);
    border-color: rgba(255,255,255,0.25);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  }
  .oauth-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

  .divider {
    display: flex; align-items: center; gap: 14px;
    margin: 20px 0;
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 500;
  }
  .divider::before, .divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-bright), transparent);
  }

  /* Fields */
  .field { margin-bottom: 14px; }
  .field label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    margin-bottom: 7px;
    color: var(--text-secondary);
  }
  .input-wrap { position: relative; }
  .input-wrap input {
    width: 100%;
    padding: 13px 16px 13px 42px;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    border-radius: 11px;
    font-size: 14.5px;
    font-family: inherit;
    color: var(--text);
    transition: all 0.2s;
    outline: none;
  }
  .input-wrap input::placeholder { color: var(--text-muted); }
  .input-wrap input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 4px rgba(59,130,246,0.15);
    background: rgba(11,16,32,0.85);
  }
  .input-wrap .input-icon {
    position: absolute;
    left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    width: 18px; height: 18px;
    display: grid; place-items: center;
  }
  .input-wrap .toggle-eye {
    position: absolute;
    right: 10px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer;
    font-size: 11.5px;
    font-weight: 600;
    user-select: none;
    padding: 4px 9px;
    border-radius: 6px;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }
  .input-wrap .toggle-eye:hover {
    color: var(--text);
    background: rgba(255,255,255,0.08);
  }

  .options-row {
    display: flex; justify-content: space-between; align-items: center;
    margin: 18px 0 24px;
    font-size: 13px;
    gap: 12px;
    flex-wrap: wrap;
    font-weight: 500;
  }
  .checkbox {
    display: flex; align-items: center; gap: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    user-select: none;
  }
  .checkbox input {
    appearance: none;
    width: 17px; height: 17px;
    background: var(--bg-input);
    border: 1px solid var(--border-bright);
    border-radius: 5px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
  }
  .checkbox input:checked {
    background: var(--brand);
    border-color: var(--brand);
  }
  .checkbox input:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    color: #fff;
    display: grid; place-items: center;
    font-size: 11px; font-weight: 700;
  }
  .forgot { color: var(--brand-bright); font-weight: 600; }
  .forgot:hover { color: var(--brand); }

  .submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(180deg, var(--brand) 0%, var(--brand-deep) 100%);
    color: #fff;
    border: 1px solid var(--brand-deep);
    border-radius: 11px;
    font-size: 14.5px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    transition: all 0.2s;
    box-shadow:
      0 6px 18px rgba(59,130,246,0.4),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .submit-btn:hover {
    transform: translateY(-1px);
    box-shadow:
      0 12px 28px rgba(59,130,246,0.5),
      inset 0 1px 0 rgba(255,255,255,0.25);
  }
  .submit-btn .arrow { transition: transform 0.2s; }
  .submit-btn:hover .arrow { transform: translateX(3px); }

  .form-footer-hint {
    margin-top: 20px;
    text-align: center;
    font-size: 13.5px;
    color: var(--text-muted);
    font-weight: 500;
  }
  .form-footer-hint a { color: var(--brand-bright); font-weight: 600; }
  .form-footer-hint a:hover { color: var(--brand); }

  .form-bottom {
    position: relative; z-index: 2;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 10px;
    font-size: 12px; color: var(--text-muted);
    font-weight: 500;
  }
  .form-bottom a { color: var(--text-muted); transition: color 0.2s; }
  .form-bottom a:hover { color: var(--text-secondary); }
  .lang-pill {
    padding: 6px 12px;
    background: var(--bg-1);
    border: 1px solid var(--border-bright);
    border-radius: 100px;
    cursor: pointer;
    transition: all 0.2s;
  }
  .lang-pill:hover { border-color: rgba(255,255,255,0.25); }

  /* ============================================== */
  /* ============ RESPONSIVE ============ */
  /* ============================================== */

  /* Laptop */
  @media (max-width: 1200px) {
    .form-panel { padding: 24px 36px; }
  }

  /* Tablet */
  @media (max-width: 1024px) {
    .split { grid-template-columns: 1fr; min-height: auto; }
    .visual-panel {
      min-height: 360px;
      max-height: 420px;
      padding: 16px;
    }
    .visual-inner { background-position: center 25%; }
    .visual-top { top: 24px; left: 28px; }
    .visual-stats { top: 24px; right: 28px; }
    .visual-bottom { bottom: 32px; left: 32px; right: 32px; }
    .visual-bottom h2 { font-size: 24px; max-width: 100%; }
    .visual-attribution { padding-top: 18px; }
    .form-panel { padding: 28px 32px; min-height: auto; }
    .form-wrap { padding: 20px 0; align-items: flex-start; }
  }

  /* Tablet portrait */
  @media (max-width: 768px) {
    /* Taller photo panel (~23% more than before) — gives breathing room for the headline */
    .visual-panel { min-height: 320px; padding: 12px; }
    /* face sits in upper third so text overlay covers body/background, not face */
    .visual-inner { background-position: center 15%; }
    /* stronger bottom gradient so the text reads cleanly */
    .visual-inner::before {
      background:
        linear-gradient(180deg, rgba(22,29,51,0.2) 0%, rgba(22,29,51,0) 28%, rgba(22,29,51,0.92) 100%),
        linear-gradient(135deg, rgba(59,130,246,0.06) 0%, transparent 50%, rgba(22,29,51,0.4) 100%);
    }
    .visual-top { top: 20px; left: 24px; }
    .visual-top .brand-text { font-size: 17px; }
    .visual-top .brand-icon { width: 26px; height: 26px; }
    .visual-stats {
      top: 20px; right: 24px;
      flex-direction: column;
      gap: 6px;
    }
    .stat-pill { padding: 6px 12px; font-size: 11.5px; font-weight: 500; }
    /* Headline restored at this size — quote-icon stays hidden to save vertical space */
    .visual-bottom { bottom: 22px; left: 24px; right: 24px; }
    .visual-bottom .quote-icon { display: none; }
    .visual-bottom h2 {
      display: block;
      font-size: 19px;
      line-height: 1.25;
      margin-bottom: 16px;
      max-width: 100%;
    }
    .visual-attribution {
      padding-top: 14px;
      border-top: 1px solid rgba(255,255,255,0.14);
      max-width: 100%;
    }
    .attribution-avatar { width: 36px; height: 36px; }
    .attribution-text strong { font-size: 13px; font-weight: 500; }
    .attribution-text span { font-size: 11.5px; font-weight: 500; }
    .form-panel { padding: 16px 20px 20px; }
    .form-top { font-size: 12.5px; font-weight: 500; }
    .form-top a { padding: 6px 12px; font-size: 12.5px; font-weight: 500; }
    .form-wrap { padding: 12px 0; }
    .form-card { padding: 32px 24px; border-radius: 20px; }
    .form-card h1 { font-size: 24px; }
    .oauth-btn { font-size: 13px; padding: 11px 8px; gap: 8px; font-weight: 500; }
    .form-bottom { font-size: 11.5px; font-weight: 500; }
  }

  /* Mobile */
  @media (max-width: 480px) {
    /* Taller photo panel (~22% more) — enough room for a short headline + attribution */
    .visual-panel { min-height: 270px; padding: 10px; }
    .visual-inner { background-position: center 14%; }
    .visual-top { top: 16px; left: 20px; }
    .visual-stats { top: 16px; right: 20px; }
    .stat-pill { padding: 5px 8px; font-size: 10px; font-weight: 500; }
    /* Hide the second stat pill on tiny screens to avoid crowding */
    /* .visual-stats .stat-pill:nth-child(2) { display: none; } */
    .visual-bottom { bottom: 18px; left: 20px; right: 20px; }
    .visual-bottom h2 {
      font-size: 16.5px;
      line-height: 1.25;
      margin-bottom: 12px;
    }
    .visual-attribution { padding-top: 12px; }
    .attribution-avatar { width: 34px; height: 34px; }
    .form-panel { padding: 12px 14px 16px; }
    .form-top { justify-content: center; }
    .form-wrap { padding: 10px 0; }
    .form-card { padding: 28px 20px; border-radius: 18px; }
    .form-card h1 { font-size: 22px; }
    .form-card > .lede { font-size: 13.5px; margin-bottom: 22px; font-weight: 500; }
    /* OAuth: show text because we have space with only 2 columns now */
    .oauth-btn { padding: 11px 0; font-size: 13px; gap: 8px; font-weight: 500; }
    .oauth-btn svg { width: 18px; height: 18px; }
    .input-wrap input { font-size: 14px; padding: 12px 14px 12px 40px; font-weight: 500; }
    .submit-btn { font-size: 14px; padding: 13px 20px; font-weight: 500; }
    .form-bottom { justify-content: center; text-align: center; }
    .form-bottom div:first-child { width: 100%; text-align: center; }
  }