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

body{
  font-family:'Sora',sans-serif;
  min-height:100vh;
  display:flex;
  -webkit-font-smoothing:antialiased;
  background:#060d1b;
  overflow:hidden;
}

/* ═══ LEFT: BRANDING PANEL ═══ */
.brand-panel{
  flex:1;
  background:linear-gradient(160deg,#0c1a35 0%,#0f2040 40%,#0d2a45 100%);
  display:flex;flex-direction:column;justify-content:center;
  padding:60px 60px 60px 80px;
  position:relative;overflow:hidden;
}
.brand-panel::before{
  content:"";position:absolute;inset:0;
  background:
    radial-gradient(ellipse at 30% 40%,rgba(13,148,136,0.12) 0%,transparent 50%),
    radial-gradient(ellipse at 70% 80%,rgba(14,165,233,0.06) 0%,transparent 40%);
  pointer-events:none;
}
.brand-panel::after{
  content:"";position:absolute;top:-200px;right:-200px;width:500px;height:500px;
  border-radius:50%;border:1px solid rgba(13,148,136,0.06);pointer-events:none;
}
.brand-content{position:relative;z-index:1;max-width:480px}
.brand-logo{display:flex;align-items:center;gap:12px;margin-bottom:48px}
.brand-mark{width:42px;height:42px;border-radius:11px;background:linear-gradient(135deg,#0d9488,#14b8a6);display:flex;align-items:center;justify-content:center;font-weight:900;font-size:17px;color:white;box-shadow:0 4px 20px rgba(13,148,136,0.3)}
.brand-name{font-size:20px;font-weight:900;color:white;letter-spacing:-0.4px}
.brand-headline{font-family:'Instrument Serif',serif;font-style:italic;font-size:38px;color:white;line-height:1.25;margin-bottom:16px;letter-spacing:-0.5px}
.brand-headline span{color:#14b8a6}
.brand-sub{font-size:14px;color:rgba(255,255,255,0.4);line-height:1.7;max-width:400px}

.brand-features{margin-top:40px;display:flex;flex-direction:column;gap:14px}
.brand-feat{display:flex;align-items:center;gap:12px}
.brand-feat-dot{width:28px;height:28px;border-radius:8px;background:rgba(13,148,136,0.1);border:1px solid rgba(13,148,136,0.15);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.brand-feat-text{font-size:12px;color:rgba(255,255,255,0.5);font-weight:500}
.brand-feat-text strong{color:rgba(255,255,255,0.8);font-weight:700}

/* ═══ RIGHT: LOGIN FORM ═══ */
.login-panel{
  width:520px;
  background:#ffffff;
  display:flex;flex-direction:column;justify-content:center;
  padding:60px 64px;
  position:relative;
  flex-shrink:0;
}

.form-header{margin-bottom:32px}
.form-welcome{font-size:13px;font-weight:700;color:#0d9488;text-transform:uppercase;letter-spacing:0.8px;margin-bottom:8px}
.form-title{font-size:26px;font-weight:900;color:#0f172a;letter-spacing:-0.5px;margin-bottom:6px}
.form-sub{font-size:13px;color:#64748b;line-height:1.6}

.fg{margin-bottom:18px}
.fl{font-size:10px;font-weight:700;color:#64748b;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:7px;display:block}
.fi{
  width:100%;padding:13px 16px;
  border:1.5px solid #e2e8f0;border-radius:10px;
  font-family:'Sora',sans-serif;font-size:13px;color:#0f172a;
  outline:none;background:#f8fafc;transition:all 0.15s;
}
.fi:focus{border-color:#0d9488;background:white;box-shadow:0 0 0 3px rgba(13,148,136,0.08)}
.fi::placeholder{color:#94a3b8}

.form-options{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px;gap:16px}
.form-remember{display:flex;align-items:center;gap:8px;font-size:12px;color:#64748b;cursor:pointer;font-weight:500}
.form-remember input[type="checkbox"]{
  width:16px;height:16px;accent-color:#0d9488;cursor:pointer;
}
.form-forgot{font-size:12px;color:#0d9488;font-weight:600;text-decoration:none;cursor:pointer}
.form-forgot:hover{text-decoration:underline}

.login-btn{
  width:100%;padding:14px;border-radius:11px;border:none;
  background:linear-gradient(135deg,#0d9488,#14b8a6);
  color:white;font-family:'Sora',sans-serif;font-size:14px;font-weight:700;
  cursor:pointer;transition:all 0.15s;
  box-shadow:0 4px 14px rgba(13,148,136,0.25);
  letter-spacing:-0.2px;
}
.login-btn:hover{transform:translateY(-1px);box-shadow:0 8px 24px rgba(13,148,136,0.3)}
.login-btn:active{transform:translateY(0)}
.login-btn.loading{opacity:0.7;pointer-events:none}

.error-box{
  background:rgba(220,38,38,0.05);border:1px solid rgba(220,38,38,0.12);
  border-radius:10px;padding:12px 16px;margin-bottom:20px;
  font-size:12px;color:#dc2626;font-weight:600;display:none;
}

.form-footer{margin-top:28px;padding-top:20px;border-top:1px solid #f1f5f9;text-align:center}
.form-footer-text{font-size:11px;color:#94a3b8}
.form-footer-text a{color:#0d9488;font-weight:700;text-decoration:none}
.form-footer-text a:hover{text-decoration:underline}

/* Demo hint */
.demo-box{
  margin-top:20px;
  background:#f0fdfa;border:1px solid rgba(13,148,136,0.1);
  border-radius:10px;padding:14px 16px;
}
.demo-label{font-size:9px;font-weight:800;color:#0d9488;text-transform:uppercase;letter-spacing:0.5px;margin-bottom:6px}
.demo-creds{font-size:11px;color:#64748b;line-height:1.7}
.demo-creds code{background:white;border:1px solid #e2e8f0;padding:2px 7px;border-radius:5px;font-size:11px;font-weight:700;color:#0f172a;font-family:'Sora',sans-serif}

/* Success */
.success-state{display:none;text-align:center}
.success-ring{
  width:64px;height:64px;border-radius:50%;
  background:linear-gradient(135deg,rgba(5,150,105,0.08),rgba(5,150,105,0.04));
  border:2px solid rgba(5,150,105,0.15);
  display:flex;align-items:center;justify-content:center;
  margin:0 auto 20px;
}
.success-biz{font-size:20px;font-weight:900;color:#0d9488;letter-spacing:-0.3px;margin-bottom:4px}
.success-msg{font-size:13px;color:#64748b;margin-bottom:24px}
.loading-bar{width:100%;height:4px;background:#f1f5f9;border-radius:2px;overflow:hidden}
.loading-fill{width:0%;height:100%;background:linear-gradient(90deg,#0d9488,#14b8a6);border-radius:2px;animation:loadBar 1.5s ease forwards}
@keyframes loadBar{from{width:0%}to{width:100%}}

/* ═══ MOBILE ═══ */
@media(max-width:900px){
  body{flex-direction:column}
  .brand-panel{
    flex:none;padding:32px 24px;min-height:auto;
  }
  .brand-headline{font-size:26px}
  .brand-sub{font-size:12px}
  .brand-features{display:none}
  .login-panel{
    width:100%;flex:1;
    padding:32px 28px;
    border-radius:20px 20px 0 0;
    margin-top:-16px;
    position:relative;z-index:1;
  }
  .form-title{font-size:22px}
}
@media(max-width:400px){
  .brand-panel{padding:24px 20px}
  .login-panel{padding:28px 20px}
  .brand-headline{font-size:22px}
  .brand-logo{margin-bottom:24px}
}