/* =========================
   RESET
========================= */
*{box-sizing:border-box;font-family:system-ui,sans-serif}
body{
  margin:0;
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#f3f4f6;
  padding:20px;
  color:#111;
}

/* =========================
   WRAP
========================= */
.login-wrap{
  width:100%;
  max-width:420px;
  display:flex;
  flex-direction:column;
  gap:16px;
}

/* =========================
   BRAND
========================= */
.brand{
  background:#ffffff;
  border-radius:16px;
  padding:14px 16px;
  display:flex;
  align-items:center;
  gap:12px;
  box-shadow:0 10px 26px rgba(0,0,0,.10);
}

.logo{
  width:48px;
  height:48px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#1f2937;
  color:#fff;
  font-size:22px;
}

.brand-text h1{
  margin:0;
  font-size:18px;
  font-weight:900;
}

.brand-text p{
  margin:2px 0 0;
  font-size:13px;
  color:#6b7280;
}

/* =========================
   BOX
========================= */
.box{
  background:#ffffff;
  border-radius:16px;
  padding:22px 18px;
  box-shadow:0 20px 40px rgba(0,0,0,.12);
}

.box h2{
  margin:0 0 14px;
  font-size:20px;
  font-weight:900;
}

/* =========================
   FIELDS
========================= */
.field{
  position:relative;
  display:flex;
  align-items:center;
  gap:10px;
  background:#f9fafb;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:12px;
  margin-bottom:12px;
}

.field:focus-within{
  border-color:#111827;
  box-shadow:0 0 0 3px rgba(17,24,39,.1);
}

.icon{
  width:26px;
  display:flex;
  justify-content:center;
}

.field input{
  border:none;
  outline:none;
  background:transparent;
  width:100%;
  font-size:15px;
}

.toggle-pass{
  border:none;
  background:transparent;
  cursor:pointer;
  opacity:.7;
}

/* =========================
   BUTTON
========================= */
#btnLogin{
  width:100%;
  border:none;
  padding:14px;
  border-radius:14px;
  background:#1f2937;
  color:#fff;
  font-weight:800;
  font-size:15px;
  cursor:pointer;
  transition:transform .15s, box-shadow .15s;
}

#btnLogin:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 24px rgba(0,0,0,.2);
}

#btnLogin:disabled{
  opacity:.6;
  cursor:not-allowed;
}

/* =========================
   MSG
========================= */
.msg{
  margin-top:12px;
  background:#fee2e2;
  color:#991b1b;
  border:1px solid #fecaca;
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
}

/* =========================
   FOOTER
========================= */
.footer-note{
  text-align:center;
  font-size:12px;
  color:#6b7280;
}
