:root{
  --card-w: 500px;
  --accent1: #ff6a00;
  --accent2: #ee0979;
  --deep: #0b4096;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: 'Segoe UI', system-ui, -apple-system, "Helvetica Neue", Arial;
  background: linear-gradient(180deg,#f3f3f5 0%, #e9e9ef 100%);
  min-height:50vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:5px;
}
.card {
  width:var(--card-w);
  background: linear-gradient(180deg, rgba(3, 69, 91, 0.95), rgba(11,64,150,0.85));
  color:#fff;
  border-radius:14px;
  box-shadow: 0 12px 40px rgba(10,20,40,0.25);
  padding:22px;
  position:relative;
  overflow:hidden;
}
.brand {
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:12px;
}
.brand img{
  width:100px;
  height:100px;
  object-fit:contain;
  border-radius:50%;
  background:rgba(255,255,255,0.06);
  padding:0px;
}
.brand h1{
  font-size:25px;
  margin:0;
  letter-spacing:0.6px;
}
.brand p{
  margin:0;
  font-size:15px;
  opacity:0.9;
}
form { margin-top:12px; }
.field { margin-bottom:12px; }
label { display:block; font-size:15px; margin-bottom:6px; color: #f0f6ff; }
input[type="text"], input[type="email"], input[type="password"] {
  width:100%;
  padding:10px 12px;
  border-radius:8px;
  border:1px solid rgba(242, 242, 16, 0.064);
  background: rgba(156, 154, 10, 0);
  color:#fff;
  outline:none;
  transition: box-shadow .15s, border-color .15s;
  font-size:14px;
}
input:focus {
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  border-color: rgba(204, 230, 7, 0.897);
}
.btn {
  display:inline-block;
  width:100%;
  padding:11px 14px;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:600;
  color:#fff;
  background: linear-gradient(90deg,var(--accent1),var(--accent2));
  box-shadow: 0 8px 20px rgba(238,9,121,0.18);
  transition: transform .12s ease, box-shadow .12s ease;
  font-size:15px;
}
.muted { font-size:13px; color: rgba(255,255,255,0.85); text-align:center; margin-top:10px; }
.error-list { background: rgba(255,0,0,0.06); color: #ffdede; padding:10px; border-radius:8px; margin-bottom:12px; font-size:13px; }

/* Success modal */
.overlay {
  position:fixed; inset:0; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.45); z-index:2000; padding:20px;
}
.modal {
  width:420px; max-width:100%; background: linear-gradient(180deg,#ffffff,#f7f7ff);
  color:#111; border-radius:12px; box-shadow: 0 18px 60px rgba(10,20,40,0.35); padding:20px; text-align:center;
}
.modal h2 { margin:6px 0 12px; color:var(--deep); }
.modal .info { text-align:left; margin:12px 0; }
.modal .info p { margin:8px 0; font-size:15px; }
.modal .btn-row { display:flex; gap:10px; justify-content:center; margin-top:14px; }
.btn-outline {
  padding:10px 14px; border-radius:8px; border:1px solid #cfcfe6; background:transparent; color:#333; text-decoration:none; display:inline-block;
}
@media (max-width:460px){
  .card { width:100%; padding:10px; border-radius:10px; }
  .brand img { width:100px; height:100px; }
}
/* Mobile field error */
.field-error {
  color: #ee3434;
  font-size: 13px;
  margin-top: 6px;
  display: none;
}
.field-error.visible {
  display: block;
}