:root{
  --orange:#F7931E;
  --purple:#6A1B9A;
  --white:#FFFFFF;
  --muted:#6b7280;
  --border:#e5e7eb;
  --radius:18px;
  --shadow:0 18px 45px rgba(0,0,0,.22);
}

*{margin:0;padding:0;box-sizing:border-box;font-family:system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Arial;}

body{
  min-height:100vh;
  display:flex;
  justify-content:center;
  align-items:center;
  background:linear-gradient(135deg,var(--orange),var(--purple));
  padding:24px;
}

.sb-login-wrap{width:100%;max-width:520px;}

.sb-login-card{
  background:#fff;
  border-radius:28px;
  box-shadow:var(--shadow);
  padding:42px 38px;
}

.sb-brand{text-align:center;margin-bottom:10px;}
.sb-brand img{width:190px;height:auto;}

.sb-title{
  text-align:center;
  color:var(--purple);
  font-weight:900;
  font-size:26px;
  margin-top:6px;
}
.sb-subtitle{
  text-align:center;
  color:var(--muted);
  margin:8px 0 24px;
  font-size:14px;
}

/* Roles */
.sb-role-selector{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  justify-content:center;
  margin-bottom:26px;
}

.sb-role-btn{
  border:1px solid var(--border);
  background:#f6f6f6;
  padding:12px 16px;
  border-radius:16px;
  font-weight:900;
  cursor:pointer;
  min-width:140px;
  transition:.15s;
}
.sb-role-btn:hover{transform:translateY(-1px);}
.sb-role-btn.sb-active{
  background:#111827;
  color:#fff;
  border:none;
}

/* Campos */
.sb-field{margin-bottom:18px;}
.sb-field label{
  display:block;
  font-weight:900;
  margin-bottom:8px;
  color:#111827;
  font-size:14px;
}

.sb-field input{
  width:100%;
  padding:14px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fafafa;
  outline:none;
}

/* ✅ FIX DEFINITIVO: contenedor SOLO para input + ojito */
.sb-pass-row{
  position:relative;
}

.sb-pass-row input{
  padding-right:56px; /* espacio para el ojito */
}

.sb-eye-btn{
  position:absolute;
  top:50%;
  right:10px;
  transform:translateY(-50%); /* CENTRADO PERFECTO EN EL INPUT */
  width:42px;
  height:42px;
  border-radius:12px;
  border:1px solid var(--border);
  background:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* Acciones */
.sb-actions-row{
  display:flex;
  justify-content:flex-end;
  margin:10px 0 14px;
}
.sb-link{
  background:none;
  border:none;
  color:var(--purple);
  font-weight:900;
  cursor:pointer;
  font-size:13px;
}
.sb-link:hover{text-decoration:underline;}

/* Botón principal */
.sb-btn-primary{
  width:100%;
  padding:14px;
  border:none;
  border-radius:14px;
  font-weight:950;
  color:#fff;
  cursor:pointer;
  background:linear-gradient(90deg,var(--orange),var(--purple));
}

/* Secundario */
.sb-btn-secondary{
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--border);
  background:#fff;
  font-weight:950;
  cursor:pointer;
}

/* Modal */
.sb-modal-overlay{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  display:none;
  align-items:center;
  justify-content:center;
  padding:20px;
  z-index:9999;
}

.sb-modal-overlay.sb-show{display:flex;}

.sb-modal{
  background:#fff;
  width:100%;
  max-width:520px;
  border-radius:18px;
  padding:20px;
  box-shadow:0 18px 60px rgba(0,0,0,.35);
}

.sb-modal-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.sb-modal-title{font-weight:950;color:#111827;}
.sb-modal-close{
  border:none;
  background:#eee;
  width:38px;
  height:38px;
  border-radius:12px;
  cursor:pointer;
}

.sb-modal-text{color:var(--muted);margin-bottom:14px;line-height:1.4;}
.sb-modal-actions{display:flex;gap:10px;justify-content:flex-end;}