:root{
    --indigo:#4F3FF0;
    --indigo-dark:#372CB0;
    --indigo-darker:#241D77;
    --teal:#17B9C9;
    --green:#12B76A;
    --pink:#E93FA3;
    --bg:#F4F5F7;
    --ink:#1E2230;
    --muted:#767C8C;
    --line:#E6E8EE;
    --white:#FFFFFF;
    --radius:14px;
  }
  *{box-sizing:border-box;}
  html,body{margin:0;padding:0;}
  body{
    font-family:'Inter',sans-serif;
    background:var(--bg);
    color:var(--ink);
    min-height:100vh;
    display:flex;
    align-items:center;
    justify-content:center;
    padding:32px;
  }
  .shell{
    width:100%;
    max-width:1040px;
    min-height:640px;
    background:var(--white);
    border-radius:24px;
    display:grid;
    grid-template-columns:1fr 1fr;
    overflow:hidden;
    box-shadow:0 20px 60px -20px rgba(36,29,119,0.25);
  }

  /* ---------- Left brand panel ---------- */
  .brand{
    position:relative;
    background:linear-gradient(150deg, var(--indigo) 0%, var(--indigo-dark) 55%, var(--indigo-darker) 100%);
    color:#fff;
    padding:56px 48px;
    display:flex;
    flex-direction:column;
    justify-content:space-between;
    overflow:hidden;
  }
  .brand-mark{
    display:flex;
    align-items:center;
    gap:10px;
    font-family:'Outfit',sans-serif;
    font-weight:600;
    font-size:20px;
    letter-spacing:0.02em;
    z-index:2;
  }
  .brand-mark .dot-icon{
    width:26px;height:26px;
    display:flex;align-items:center;justify-content:center;
  }

  .ripple-stage{
    position:relative;
    width:220px;height:220px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    z-index:2;
  }
  .ripple{
    position:absolute;
    border:1.5px solid rgba(255,255,255,0.55);
    border-radius:50%;
    width:70px;height:70px;
    animation:ripple 3.2s cubic-bezier(0.2,0.6,0.4,1) infinite;
    opacity:0;
  }
  .ripple.r2{animation-delay:1.05s;}
  .ripple.r3{animation-delay:2.1s;}
  @keyframes ripple{
    0%{width:70px;height:70px;opacity:0.7;}
    100%{width:220px;height:220px;opacity:0;}
  }
  .drop-core{
    position:relative;
    z-index:3;
    width:64px;height:64px;
    background:rgba(255,255,255,0.14);
    border:1px solid rgba(255,255,255,0.4);
    border-radius:50%;
    display:flex;
    align-items:center;
    justify-content:center;
  }
  @media (prefers-reduced-motion: reduce){
    .ripple{animation:none;opacity:0.25;}
  }

  .brand-copy{z-index:2;}
  .brand-copy h1{
    font-family:'Outfit',sans-serif;
    font-weight:600;
    font-size:30px;
    line-height:1.25;
    margin:0 0 12px;
  }
  .brand-copy p{
    font-size:14.5px;
    line-height:1.6;
    color:rgba(255,255,255,0.8);
    margin:0;
    max-width:340px;
  }

  .brand::after{
    content:"";
    position:absolute;
    right:-90px;bottom:-90px;
    width:280px;height:280px;
    border-radius:50%;
    background:radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%);
  }

  /* ---------- Right form panel ---------- */
  .form-side{
    padding:56px 56px;
    display:flex;
    flex-direction:column;
    justify-content:center;
  }
  .form-head{margin-bottom:32px;}
  .form-head h2{
    font-family:'Outfit',sans-serif;
    font-weight:600;
    font-size:26px;
    margin:0 0 6px;
  }
  .form-head p{
    font-size:14px;
    color:var(--muted);
    margin:0;
  }

  label{
    display:block;
    font-size:13px;
    font-weight:500;
    color:var(--ink);
    margin-bottom:6px;
  }
  .field{margin-bottom:18px;}
  .input-wrap{
    position:relative;
  }
  input[type="email"], input[type="password"], input[type="text"]{
    width:100%;
    height:46px;
    border-radius:10px;
    border:1.5px solid var(--line);
    background:var(--white);
    padding:0 44px 0 14px;
    font-size:14.5px;
    font-family:'Inter',sans-serif;
    color:var(--ink);
    outline:none;
    transition:border-color 0.15s ease, box-shadow 0.15s ease;
  }
  input::placeholder{color:#B6BAC5;}
  input:focus{
    border-color:var(--indigo);
    box-shadow:0 0 0 3px rgba(79,63,240,0.14);
  }
  .input-icon{
    position:absolute;
    right:14px;top:50%;
    transform:translateY(-50%);
    color:#A8ACBA;
    display:flex;
  }
  .input-icon.clickable{cursor:pointer;}

  .row-between{
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:4px 0 24px;
  }
  .remember{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:13px;
    color:var(--muted);
  }
  .remember input{width:15px;height:15px;accent-color:var(--indigo);}
  .forgot{
    font-size:13px;
    color:var(--indigo);
    text-decoration:none;
    font-weight:500;
  }
  .forgot:hover{text-decoration:underline;}

  .btn-primary{
    width:100%;
    height:48px;
    border:none;
    border-radius:10px;
    background:var(--indigo);
    color:#fff;
    font-family:'Outfit',sans-serif;
    font-size:15px;
    font-weight:500;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:8px;
    transition:background 0.15s ease, transform 0.05s ease;
  }
  .btn-primary:hover{background:var(--indigo-dark);}
  .btn-primary:active{transform:scale(0.99);}

  .divider{
    display:flex;
    align-items:center;
    gap:12px;
    margin:22px 0;
    color:var(--muted);
    font-size:12px;
  }
  .divider::before, .divider::after{
    content:"";
    flex:1;
    height:1px;
    background:var(--line);
  }

  .btn-google{
    width:100%;
    height:46px;
    border:1.5px solid var(--line);
    border-radius:10px;
    background:var(--white);
    color:var(--ink);
    font-family:'Inter',sans-serif;
    font-size:14px;
    font-weight:500;
    text-decoration:none;
    cursor:pointer;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    transition:background 0.15s ease, border-color 0.15s ease;
    box-sizing:border-box;
  }
  .btn-google:hover{background:#FAFAFB;border-color:#D6D9E0;}
  .btn-google:active{transform:scale(0.99);}

  .helper{
    text-align:center;
    font-size:13px;
    color:var(--muted);
  }
  .helper a{color:var(--indigo);text-decoration:none;font-weight:500;}
  .helper a:hover{text-decoration:underline;}

  .field-error{
    display:block;
    font-size:12.5px;
    color:#C0392B;
    margin-top:6px;
  }
  .validation-summary{
    font-size:13px;
    color:#C0392B;
    background:#FDEEEC;
    border:1px solid #F3C6C0;
    border-radius:10px;
    padding:10px 14px;
    margin-bottom:18px;
  }
  .validation-summary ul{margin:0;padding-left:18px;}
  .input-validation-error{
    border-color:#C0392B !important;
  }

  .powered{
    margin-top:36px;
    text-align:center;
    font-size:11.5px;
    color:#B6BAC5;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:6px;
  }
  .powered img{
    height:14px;
    width:auto;
    display:block;
    opacity:0.85;
  }

  @media (max-width:800px){
    .shell{grid-template-columns:1fr;min-height:auto;}
    .brand{padding:40px 32px;min-height:260px;}
    .ripple-stage{width:150px;height:150px;margin:0;position:absolute;right:-20px;top:-20px;opacity:0.5;}
    .form-side{padding:40px 32px;}
  }
