:root{
  --navy:#33304d;
  --blue:#4f7fe0;
  --blue-dark:#3763c9;
  --text:#2c2a3f;
  --muted:#9a97a8;
  --line:#e7e5ee;
  --error:#e0503a;
}
*{box-sizing:border-box;}
html,body{margin:0;padding:0;}
body{
  font-family:'Poppins','Segoe UI',Arial,sans-serif;
  background:linear-gradient(160deg,#dfe2ea,#c7ccd8);
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:30px;
}

.card{
  display:flex;
  width:100%;
  max-width:800px;
  background:#fff;
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 20px 50px rgba(40,30,70,.15);
}

/* ---------- Left panel ---------- */
.panel-left{
  background:var(--navy);
  color:#fff;
  width:44%;
  padding:40px 34px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.brand{display:flex;align-items:center;gap:12px;}
.brand-mark{position:relative;width:34px;height:34px;flex-shrink:0;}
.brand-mark span{position:absolute;border-radius:6px;}
.brand-mark .sq1{width:24px;height:24px;background:var(--blue-dark);top:0;left:0;}
.brand-mark .sq2{width:24px;height:24px;background:var(--blue);bottom:0;right:0;opacity:.9;}
.brand-text .name{font-size:19px;font-weight:700;letter-spacing:.5px;line-height:1;}
.brand-text .slogan{font-size:9px;color:#c9c6d6;letter-spacing:.3px;margin-top:2px;}

.panel-middle{margin:60px 0 30px;}
.panel-middle h2{font-size:26px;line-height:1.25;margin:0 0 18px;font-weight:700;}
.panel-middle p{font-size:12.5px;line-height:1.8;color:#c9c6d6;margin:0;max-width:230px;}

/* ---------- Right panel ---------- */
.panel-right{flex:1;padding:40px 44px;}
.panel-right h1{font-size:26px;color:var(--text);margin:0 0 22px;font-weight:700;}

.field{margin-bottom:18px;}
.field input{
  width:100%;
  border:none;
  border-bottom:1px solid var(--line);
  padding:8px 2px;
  font-size:13.5px;
  color:var(--text);
  font-family:inherit;
  background:transparent;
}
.field input::placeholder{color:var(--muted);}
.field input:focus{outline:none;border-bottom-color:var(--blue);}
.field.has-error input{border-bottom-color:var(--error);}
.field-error{
  color:var(--error);
  font-size:11.5px;
  margin-top:4px;
}

.form-error{
  background:#fdecea;
  border:1px solid #f3c9c2;
  color:var(--error);
  font-size:12.5px;
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:18px;
}
.form-success{
  background:#e9f8ef;
  border:1px solid #bfe8cf;
  color:#1e8a4c;
  font-size:12.5px;
  padding:10px 12px;
  border-radius:8px;
  margin-bottom:18px;
}

.terms{
  display:flex;
  align-items:center;
  gap:9px;
  margin:6px 0 24px;
  font-size:12.5px;
  color:var(--text);
}
.terms input{width:15px;height:15px;accent-color:var(--blue);}

.btn-register{
  width:100%;
  border:none;
  border-radius:8px;
  padding:13px;
  font-size:15px;
  font-weight:700;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(90deg,var(--blue-dark),var(--blue));
  letter-spacing:.3px;
}
.btn-register:hover{opacity:.92;}

.login-line{
  text-align:center;
  margin-top:16px;
  font-size:12.5px;
  color:var(--text);
}
.login-line a{color:var(--blue-dark);font-weight:600;text-decoration:none;}
.login-line a:hover{text-decoration:underline;}

@media (max-width:680px){
  .card{flex-direction:column;max-width:420px;}
  .panel-left{width:100%;}
  .panel-middle{margin:30px 0;}
}
