body{
  font-family:Segoe UI, Arial;
  background:#f4f6f9;
  display:flex; align-items:center; justify-content:center;
  height:100vh; margin:0;
}
.box{
  background:white; padding:30px;
  border-radius:12px; box-shadow:0 8px 25px rgba(0,0,0,.12);
  width:380px;
}
h2{text-align:center; margin-top:0}
label{display:block; margin-top:10px; font-weight:600}
input[type="text"], input[type="password"]{
  width:100%; padding:10px; margin-top:6px;
  border:1px solid #ddd; border-radius:8px;
  box-sizing:border-box;
}
.row{
  display:flex; align-items:center; gap:10px; margin-top:10px;
  color:#2c3e50;
}
.row input{ width:auto; }
button{
  width:100%; padding:10px; margin-top:14px;
  border:none; background:#2c3e50; color:white;
  border-radius:8px; font-weight:700; cursor:pointer;
}
.msg{
  margin-top:12px; text-align:center;
  font-weight:600;
}
.msg.error{ color:#e74c3c; }
.msg.success{ color:#2ecc71; }

.small-note{
  margin-top:10px;
  font-size:12px;
  color:#555;
  text-align:center;
}

/* Modal */
.modal-backdrop{
  position:fixed; inset:0;
  background:rgba(0,0,0,.45);
  display:none;
  align-items:center; justify-content:center;
  z-index:9999;
}
.modal{
  background:#fff;
  width:420px;
  border-radius:12px;
  box-shadow:0 10px 30px rgba(0,0,0,.25);
  padding:22px 22px 18px;
}
.modal h3{ margin:0 0 10px; text-align:center; }
.modal .btns{
  display:flex; gap:10px; margin-top:16px;
}
.modal .btns button{
  width:50%;
  margin-top:0;
}
.btn-secondary{
  background:#95a5a6 !important;
}