  :root {
    --navy: #070D2A;
    --navy-2: #101A4A;
    --indigo: #202A78;
    --violet: #3520B8;
    --purple: #5D1FEE;
    --blue: #3B82F6;
    --blue-2: #3B5BFF;
    --cyan: #22D3EE;
    --white: #FFFFFF;
    --text: #0B1740;
    --muted: #546488;
    --border: #D8E0F0;
    --panel-bg: #f3f6fe;
    --bg-top:#eef2fb;
    --bg-bottom:#f7f9fd;
    --violet-900:#4c2fb0;
    --violet-700:#6a3fd8;
    --violet-500:#7b5cf0;
    --violet-300:#a992f5;
    --violet-100:#e4dcfb;
    --paper:#ffffff;
    --paper-shadow:rgba(90,60,180,0.18);
    --line:#d7d0f2;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  * { box-sizing: border-box; }
  html, body { margin: 0; padding: 0; }

  body {
    font-family: var(--font);
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
  }

  a { color: inherit; }

  button { font-family: inherit; cursor: pointer; }

  .visually-hidden {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
  }

  /* ---------- Header ---------- */

  .site-header {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    background: #FFFFFF;
    position: relative;
    z-index: 20;
    border-bottom: 1px solid #EEF1F8;
  }

  .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text);
  }

  .auth-brand-logo {
    width: 44px;
    height: 44px;
  }

  .brand-name {
    font-weight: 800;
    font-size: 20px;
    letter-spacing: -0.01em;
    color: #101538;
    white-space: nowrap;
  }

  .header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--purple), var(--blue-2));
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    padding: 11px 18px;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(93, 31, 238, 0.25);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    white-space: nowrap;
  }

  .header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(93, 31, 238, 0.32);
  }

  .header-cta:focus-visible,
  a:focus-visible,
  button:focus-visible,
  input:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
  }

  .header-cta .cta-short {
    display: none;
  }


  /* ---------- Hero shell ---------- */

  .hero {
    position: relative;
    display: grid;
    grid-template-columns: 50% 50%;
    min-height: calc(100vh - 80px);
    background: var(--panel-bg);
    overflow: hidden;
  }

  /* ---------- Left dark hero ---------- */

  .hero-left {
    position: relative;
    color: #101538;
    padding: 70px 40px 140px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-left-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    width: 100%;
  }

  .hero-text-col {
    min-width: 300px;
    max-width: 660px;
  }

  .eyebrow {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #6443f8;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
  }

  .eyebrow .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #7C6BD8;
    display: inline-block;
  }

  .headline {
    font-size: 60px;
    line-height: 1.04;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    color:#062054;
  }

  .headline .accent {
    background: linear-gradient(120deg, var(--cyan), var(--blue), var(--purple));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

  .hero-copy {
    font-size: 17px;
    line-height: 1.65;
    color: #546488;
    max-width: 460px;
    margin: 0 0 44px;
  }

  .feature-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
    list-style: none;
    margin: 0;
    padding: 0;
  }

  .feature-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
  }

  .feature-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
  }

  .feature-icon.i-blue { 
    background: #cde4fd;
   }
  .feature-icon.i-cyan { 
    background: #caf3ea;
   }
  .feature-icon.i-purple {  background: #e2e0fe; }

  .feature-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 3px;
    color: #071c4d;
  }

  .feature-desc {
    font-size: 14px;
    color: #546488;
    margin: 0;
  }


  .hero-wave {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    line-height: 0;
    z-index: 1;
    pointer-events: none;
  }

  .hero-wave img {
    width: 100%;
    height: auto;
    display: block;
  }

  /* ---------- Right login panel ---------- */

  .hero-right {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 40px;
    overflow: hidden;
  }

  .panel-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
    z-index: 0;
  }

  .panel-blob.b1 {
    width: 380px; height: 380px;
    top: -120px; right: -120px;
    background: radial-gradient(circle, rgba(93,31,238,0.10), transparent 70%);
  }

  .login-card {
    position: relative;
    z-index: 1;
    width: 630px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 24px 60px -20px rgba(16, 24, 64, 0.18);
    padding: 44px 44px 38px;
  }

  .card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
  }

  .card-mark{
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 6px solid #5d1fee40;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding:4px;
    box-shadow: 0 8px 18px #5d1fee40;
  }

  .card-title {
    font-size: 32px;
    font-weight: 800;
    color: #10163A;
    margin: 0;
    letter-spacing: -0.01em;
  }

  .card-subtitle {
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 30px;
  }

  .field {
    margin-bottom: 20px;
  }

  .field label {
    display: block;
    font-size: 14px;
    letter-spacing: 0.02em;
    font-weight: 700;
    color: #101538;
    margin-bottom: 8px;
  }

  .input-shell {
    position: relative;
    display: flex;
    align-items: center;
  }

  .input-icon {
    position: absolute;
    left: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B93B8;
    pointer-events: none;
  }

  .input-shell input {
    width: 100%;
    height: 56px;
    border-radius: 12px;
    border: 1.5px solid var(--border);
    background: #fff;
    padding: 0 16px 0 46px;
    font-size: 15px;
    color: var(--text);
    font-family: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
  }

  .input-shell input::placeholder {
    color: #9AA4C4;
  }

  .input-shell input:focus {
    outline: none;
    border-color: var(--purple);
    box-shadow: 0 0 0 4px rgba(93, 31, 238, 0.12);
  }

  .toggle-visibility {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B93B8;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .toggle-visibility:hover {
    background: #F2F4FB;
    color: #4C5583;
  }

  .signin-btn {
    width: 100%;
    height: 56px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--purple), var(--blue-2));
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 10px 26px -6px rgba(93, 31, 238, 0.4);
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
    margin-top: 6px;
  }

  .signin-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -6px rgba(93, 31, 238, 0.48);
  }

  .signin-btn:active {
    transform: translateY(0);
  }

  .signin-btn[disabled] {
    opacity: 0.85;
    cursor: default;
    transform: none;
  }

  .signin-btn .arrow {
    transition: transform 0.16s ease;
  }

  .signin-btn:hover .arrow {
    transform: translateX(3px);
  }

  .spinner {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,0.35);
    border-top-color: #fff;
    animation: spin 0.7s linear infinite;
    display: none;
  }

  @keyframes spin {
    to { transform: rotate(360deg); }
  }

  .signin-btn.loading .btn-label,
  .signin-btn.loading .arrow { display: none; }
  .signin-btn.loading .spinner { display: inline-block; }

  .form-links {
    text-align: center;
    margin-top: 22px;
  }

  .link-purple {
    color: var(--purple);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    background: transparent;
    border: none;
    padding: 0;
  }

  .link-purple:hover { text-decoration: underline; }

  .divider {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 20px 0 18px;
    color: #A6AEC9;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
  }

  .divider::before,
  .divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #E7EAF5;
  }

  .signup-line {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
  }

  .inline-message {
    margin-top: 14px;
    font-size: 13.5px;
    color: #1B7A4C;
    background: #EAF9F1;
    border: 1px solid #CDEFDC;
    border-radius: 10px;
    padding: 10px 14px;
    display: none;
    align-items: center;
    gap: 8px;
  }

  .inline-message.visible {
    display: flex;
    animation: fade-in 0.25s ease;
  }

  @keyframes fade-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
  }

  
  .stage {
      position: absolute;
      top: 40%;
      left: 45%;
      width: 360px;
      height: 480px;
      max-width: 92vw;
      max-height: 92vh;
      transform: translate(-50%, -50%);
  }

  /* ---------- background dotted grid ---------- */
  .stage .grid{
    position:absolute;
    right:10%;
    bottom:-5%;
    width:80px;
    height:80px;
    display:grid;
    grid-template-columns:repeat(6,1fr);
    gap:8px;
    opacity:.35;
    animation: gridTopBottom 8s ease-in-out infinite;
  }
  .stage .grid span{
    width:4px;height:4px;border-radius:50%;
    background:var(--violet-300);
  }

  @keyframes gridTopBottom {
  0% {
    transform: translateY(-30px);
  }

  50% {
    transform: translateY(30px);
  }

  100% {
    transform: translateY(-30px);
  }
}

  /* ---------- orbit rings ---------- */
  .stage .orbit{
    position:absolute;
    border-radius:50%;
    border:1px solid var(--line);
    top:50%; left:50%;
    transform:translate(-50%,-50%);
  }
  .stage .orbit.large{ width:320px; height:320px; animation:spin 46s linear infinite; }
  .stage .orbit.medium{ width:250px; height:250px; border-style:dashed; animation:spin 34s linear infinite reverse; }
  .stage .orbit.small{ width:150px; height:150px; opacity:.6; animation:spin 60s linear infinite; }

  .stage .orbit-dot{
    position:absolute;
    border-radius:50%;
    background:var(--violet-500);
    box-shadow:0 0 8px var(--violet-300);
  }
  .stage .orbit .orbit-dot{ top:-4px; left:calc(50% - 4px); }
  .stage .dot-lg{ width:9px; height:9px; background:var(--violet-700); }
  .stage .dot-md{ width:6px; height:6px; }
  .stage .dot-sm{ width:5px; height:5px; opacity:.8; }

  .stage .lone-dot{
    position:absolute;
    border-radius:50%;
    background:var(--violet-500);
  }
  @keyframes spin{ to{ transform:translate(-50%,-50%) rotate(360deg); } }

  /* ---------- soft glow behind card ---------- */
  .stage .glow{
    position:absolute;
    top:50%; left:50%;
    width:300px; height:300px;
    transform:translate(-50%,-50%);
    background:radial-gradient(circle, rgba(150,120,240,0.25), rgba(150,120,240,0) 70%);
    filter:blur(6px);
    animation:pulseGlow 4s ease-in-out infinite;
  }
  @keyframes pulseGlow{
    0%,100%{ opacity:.7; transform:translate(-50%,-50%) scale(1); }
    50%{ opacity:1; transform:translate(-50%,-50%) scale(1.08); }
  }

  /* ---------- certificate card ---------- */
  .stage .card-wrap{
    position:absolute;
    top:50%; left:50%;
    transform:translate(-50%,-50%);
    width: 160px;
    height: 210px;
    animation:floatCard 5s ease-in-out infinite;
  }
  @keyframes floatCard{
    0%,100%{ transform:translate(-50%,-50%) translateY(0); }
    50%{ transform:translate(-50%,-50%) translateY(-10px); }
  }

  .stage .card-back{
    position:absolute;
    inset:0;
    background:var(--paper);
    border-radius:14px;
    transform:rotate(-6deg) translate(-6px,4px);
    box-shadow:0 20px 40px var(--paper-shadow);
    opacity:.9;
  }
  .stage .card-front{
    position:absolute;
    inset:0;
    background:var(--paper);
    border-radius:14px;
    box-shadow:0 25px 50px var(--paper-shadow);
    padding:28px 22px;
  }

  .stage .line{
    height:9px;
    border-radius:5px;
    background:linear-gradient(90deg,var(--violet-100),#efe9fc);
    margin-bottom:16px;
  }
  .stage .line.title{ width:75%; height:11px; background:linear-gradient(90deg,var(--violet-300),var(--violet-100)); }
  .stage .line.w1{ width:100%; }
  .stage .line.w2{ width:88%; }
  .stage .line.w3{ width:95%; }
  .stage .line.w4{ width:55%; margin-bottom:0; }

  /* ---------- ribbon badge on the card ---------- */
  .stage .ribbon-badge{
    position:absolute;
    right:20px;
    bottom:34px;
    width:56px;
  }
  .stage .ribbon-tails{
    position:absolute;
    top:34px; left:50%;
    transform:translateX(-50%);
    width:34px;
    animation:sway 3s ease-in-out infinite;
    transform-origin:top center;
  }
  @keyframes sway{
    0%,100%{ transform:translateX(-50%) rotate(-4deg); }
    50%{ transform:translateX(-50%) rotate(4deg); }
  }
  .stage .tail{
    position:absolute;
    width:13px; height:34px;
    background:var(--violet-500);
  }
  .stage .tail.left{ right:5px; clip-path:polygon(0 0,80% 0,100% 100%,50% 78%,0 100%); transform:rotate(-8deg); }
  .stage .tail.right{ left:0; clip-path:polygon(0 0,80% 0,100% 100%,50% 78%,0 100%); transform:rotate(8deg); background:var(--violet-700); }

  .stage .medallion{
    position:relative;
    width:45px; height:45px;
    border-radius:50%;
    background:radial-gradient(circle at 35% 30%, var(--violet-500), var(--violet-900));
    display:flex; align-items:center; justify-content:center;
    box-shadow:0 8px 18px rgba(90,50,200,0.35);
  }
  .stage .medallion::before{
    content:"";
    position:absolute; inset:6px;
    border-radius:50%;
    border:2px dashed rgba(255,255,255,0.5);
  }
  .stage .medallion svg{ width:20px; height:20px; position:relative; z-index:1; }

  /* ---------- shield ---------- */
  .stage .shield-wrap{
    position:absolute;
    top: 23%;
    right: 13%;
    width: 45px;
    animation:floatShield 4.5s ease-in-out infinite;
    filter:drop-shadow(0 18px 22px rgba(90,50,200,0.35));
  }
  @keyframes floatShield{
    0%,100%{ transform:translateY(0) rotate(0deg); }
    50%{ transform:translateY(-8px) rotate(2deg); }
  }
  .stage .shield-wrap svg{ width:100%; height:100%; display:block; }

  .stage .check-path{
    stroke-dasharray:40;
    stroke-dashoffset:40;
    animation:drawCheck 0.6s ease-out 0.8s forwards, popCheck 2.6s ease-in-out 1.4s infinite;
  }
  @keyframes drawCheck{ to{ stroke-dashoffset:0; } }
  @keyframes popCheck{
    0%,100%{ transform:scale(1); }
    50%{ transform:scale(1.12); }
  }

  .stage .medallion-check{
    stroke-dasharray:24;
    stroke-dashoffset:24;
    animation:drawCheck2 0.5s ease-out 1.1s forwards;
  }
  @keyframes drawCheck2{ to{ stroke-dashoffset:0; } }

  @media(max-width:1440px){
    .stage .orbit.large {  width: 250px;  height: 250px;  }
    .stage .orbit.medium{  width: 180px;  height: 180px;    }
    .stage .orbit.small{  width: 130px;  height: 130px;  }
    .stage .card-wrap {  width: 110px;  height: 140px;}
    .stage .card-front{  padding:18px;}
    .stage .line.title { height: 7px; }
    .stage .line{  height: 4px; margin-bottom: 12px; }
    .stage .ribbon-badge { bottom: 20px; width: 40px; }
    .stage .medallion{height:35px;  width:35px;  }
    .stage .ribbon-tails{top:16px; }
    .stage .medallion::before{ inset:3px; }
    .stage .medallion svg{ width:14px; height:14px; }
    .stage .shield-wrap{right:25%;}
    .stage .grid{right:40%;}
    .headline{ font-size: 48px; }
    .card-title{ font-size: 28px; }
  }

  /* ---------- Responsive ---------- */
  

  @media (max-width: 1199px) {
    .headline { font-size: 50px; }
    .illustration-wrap { max-width: 260px; }
    .hero-left { padding: 56px 40px 130px; }
    .login-card { padding: 36px 32px 32px; }
  }

  @media(max-width:1024px){
    .hero { grid-template-columns: 1fr; gap:60px; padding: 60px 40px;}
    .hero-left { min-height: auto; padding:0; }
    .hero-left-inner { flex-direction: column; align-items: stretch; }
    .hero-text-col { max-width: 100%; }
    .illustration-wrap {
      max-width: 220px;
      margin: 12px auto 0;
    }
    .headline { font-size: 44px; }
    .hero-right { padding:0; }

    .stage {
        top: 25px;
        right: 0%;
        left:unset;
        transform: unset;
    }
  }

  @media (max-width: 767px) {
    .hero{ padding: 40px 20px;}
    .stage { right: -40px; }
    .site-header { padding: 0 16px; }
    .brand-name { font-size: 16px; }
    .header-cta { padding: 9px 12px; font-size: 12.5px; }

    .hero-left { text-align: left; }
    .headline { font-size: 38px; }
    .hero-copy { font-size: 15px; }
    .feature-list { gap: 16px; }
    .illustration-wrap { max-width: 170px; margin-top: 16px; }

    .login-card { padding: 26px 22px 24px; border-radius: 18px; box-shadow: none;}
    .card-title { font-size: 21px; }
  }

  @media (max-width: 479px) {
    .site-header{height:60px;}
    .hero{gap:40px;}
    .stage{display:none;}
    .headline { font-size: 40px; }
    .login-card { padding: 22px 20px 22px; }
    .eyebrow {     margin-bottom: 12px; }
    .headline{ font-size:30px; line-height:40px; margin-bottom:16px; }
    .hero-copy{ margin-bottom: 15px; }
    .feature-item{ gap: 10px; }
    .feature-icon{ width: 35px; height: 35px; }
    .feature-icon svg{ width: 16px; height: 16px; }
    .feature-title{ font-size: 14px; }
    .feature-desc{ font-size: 12px; }
    .card-header { gap: 12px; margin-bottom: 10px; }
    .card-mark {
      width: 40px;
      height: 40px; }
    .card-title { font-size: 18px; }
    .card-subtitle{margin-bottom: 15px; font-size: 14px; }
    .auth-brand-logo {
      width: 36px;
      height: 36px;
    }
    .brand{gap:5px;}
    .header-cta .cta-full {
        display: none;
    }
    .header-cta .cta-short {
        display: block;
    }
    .input-shell input{
      height: 48px;
    }
  }

  @media (prefers-reduced-motion: reduce) {
    .illustration-float,
    .orbit-ring.r1,
    .orbit-ring.r2,
    .particle {
      animation: none !important;
    }
  }


/* =========================================================
   LOGIN HEADER NAVIGATION
   ========================================================= */

.header-nav,
.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}


/* PRICING - SECONDARY NAV ACTION */
.header-pricing-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 38px;
    padding: 0 16px;

    color: #25345a;
    background: #ffffff;

    border: 1px solid rgba(83, 52, 239, 0.14);
    border-radius: 10px;

    font-size: 13.5px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: nowrap;

    box-shadow:
        0 1px 2px rgba(15, 23, 42, 0.03),
        0 4px 12px rgba(83, 52, 239, 0.04);

    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.header-pricing-link:hover {
    color: #5b2cf5;
    background: #f8f6ff;
    border-color: rgba(83, 52, 239, 0.28);

    box-shadow:
        0 2px 4px rgba(15, 23, 42, 0.04),
        0 7px 18px rgba(83, 52, 239, 0.09);

    transform: translateY(-1px);
}

.header-pricing-link:active {
    transform: translateY(0);
}

.header-pricing-link:focus-visible {
    outline: 3px solid rgba(83, 52, 239, 0.18);
    outline-offset: 2px;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 768px) {

    .header-nav,
    .header-actions {
        gap: 10px;
    }

    .header-pricing-link {
        min-height: 36px;
        padding: 0 13px;
        font-size: 13px;
        border-radius: 9px;
    }
}


@media (max-width: 480px) {

    .site-header {
        gap: 10px;
    }

    .header-nav,
    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-pricing-link {
        min-height: 34px;
        padding: 0 11px;
        font-size: 12px;
        border-radius: 8px;
    }
}