:root {
  --g: #17684a;
  --ink: #17231e;
  --muted: #748079;
  --line: #e1e8e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Arial, 'Microsoft YaHei';
  background: radial-gradient(circle at 20% 20%, #dcece2, transparent 32%), #f5f8f5;
  color: var(--ink);
  min-height: 100vh;
  display: grid;
  place-items: center;
}
main {
  width: min(440px, 92vw);
}
.logo {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: inherit;
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 18px;
}
.logo i {
  font-style: normal;
  background: var(--g);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
section {
  background: #fff;
  padding: 28px;
  border-radius: 15px;
  box-shadow: 0 24px 60px #173a2920;
}
.tabs {
  display: flex;
  background: #f1f5f2;
  padding: 4px;
  border-radius: 9px;
}
.tabs button {
  flex: 1;
  border: 0;
  background: none;
  padding: 9px;
  border-radius: 7px;
}
.tabs .on {
  background: linear-gradient(100deg, #4263eb, #3478f6);
  color: #fff;
  font-weight: bold;
}

body:has(.manabi-auth-brand) .tabs button.on {
  color: #fff !important;
  background: linear-gradient(100deg, #4263eb, #3478f6) !important;
  box-shadow: 0 7px 18px rgba(66, 99, 235, 0.2) !important;
  outline: 0 !important;
}

body:has(.manabi-auth-brand) .tabs button:not(.on) {
  color: #5f7391 !important;
  background: #edf3fc !important;
  box-shadow: none !important;
}

body:has(.manabi-auth-brand) form.on {
  color: var(--ink) !important;
  background: transparent !important;
}
form {
  display: none;
}
form.on {
  display: block;
}
h1 {
  font-size: 22px;
  margin: 24px 0;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 10px;
  margin: 13px 0;
}
input {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  outline: none;
}
input:focus {
  border-color: var(--g);
}
form > button {
  width: 100%;
  border: 0;
  background: var(--g);
  color: #fff;
  border-radius: 8px;
  padding: 11px;
  margin-top: 8px;
}
form > a {
  display: block;
  text-align: center;
  color: var(--g);
  font-size: 9px;
  margin-top: 12px;
}
form p,
#message {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
}
#message {
  text-align: center;
  color: var(--g);
}
.password-field { position: relative; display: block; }
.password-field input { padding-right: 52px !important; box-sizing: border-box; width: 100%; }
body .password-field .password-toggle { position:absolute; right:8px; top:50%; transform:translateY(-50%); width:38px; height:38px; padding:8px; margin:0; background:transparent; color:#45638a; border:0; box-shadow:none; cursor:pointer; }
.password-toggle svg { width:22px; height:22px; display:block; }
body [hidden] { display:none !important; }
#verifyForm label, #verifyForm > button, #resetForm label:has(#resetToken) { display:none !important; }
body .manabi-auth-brand img.manabi-brand-logo { width:150px; height:150px; object-fit:contain; }
