.auth-otp-hint {
  margin: 0 0 0.85rem;
  color: #5b6578;
  font-size: 0.92rem;
  line-height: 1.4;
}
.auth-otp-input {
  letter-spacing: 0.35em;
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
}
.auth-page .btn-auth.is-ghost {
  margin-top: 0.55rem;
  background: #f3f6fa;
  color: #1f2937;
  box-shadow: none;
}
.auth-page .btn-auth.is-ghost:hover {
  background: #e8eef5;
  color: #1f2937;
}
.auth-resend-line {
  margin: 0.85rem 0 0;
  text-align: center;
  color: #5b6578;
  font-size: 0.92rem;
}
.auth-resend-line button {
  border: 0;
  padding: 0;
  background: none;
  color: #009CFF;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.auth-page {
  min-height: 100vh;
  background: #ffffff;
  font-family: "Heebo", "Inter", "Segoe UI", sans-serif;
}

.auth-page .auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.auth-panel {
  display: none;
  flex: 1 1 42%;
  padding: 3rem;
  color: #fff;
  background: linear-gradient(160deg, #009CFF 0%, #009CFF 55%, #0465a0 100%);
  position: relative;
  overflow: hidden;
}

.auth-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.18), transparent 40%);
}

.auth-panel-inner {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: auto 0;
}

.auth-panel h1 {
  font-size: 2.4rem;
  font-weight: 800;
  line-height: 1.2;
  margin: 1.25rem 0 1rem;
  color: #fff;
}

.auth-panel p {
  color: rgba(255,255,255,0.88);
  margin-bottom: 1.75rem;
}

.auth-panel-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.auth-panel-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
  color: rgba(255,255,255,0.92);
}

.auth-panel-list i {
  margin-top: 0.2rem;
}

.auth-form-wrap {
  flex: 1 1 58%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  background: #ffffff;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  background: #F3F6F9;
  border-radius: 5px;
  box-shadow: none;
  padding: 2.5rem;
}

.auth-card > *:not(.brand-link):not(h2) {
  flex: 0 0 100%;
}

.auth-card .brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 1.6rem;
}

.auth-card .brand-link img {
  width: 30px;
  height: 30px;
}

.auth-card .brand-link span {
  font-size: 1.5rem;
  font-weight: 700;
  color: #009CFF;
  text-transform: uppercase;
}

.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #191C24;
  margin: 0 0 1.6rem;
}

.auth-card .sub {
  display: none;
}

.auth-sponsor {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: -0.75rem 0 1.25rem;
  padding: 0.65rem 0.8rem;
  background: #ebf2f7;
  border: 1px solid #d5dde3;
  border-radius: 4px;
  color: #51545b;
  font-size: 0.86rem;
}

.auth-sponsor strong {
  color: #009CFF;
  font-weight: 800;
}

.auth-alert {
  margin: 0 0 1rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid #f5c2c7;
  border-radius: 4px;
  background: #fff5f5;
  color: #b42318;
  font-size: 0.86rem;
  font-weight: 600;
}

.auth-alert.is-success {
  border-color: #a7f3d0;
  background: #ecfdf5;
  color: #047857;
}

.auth-card label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b4458;
  margin-bottom: 0.4rem;
}

.auth-card .form-control,
.auth-card .form-select {
  width: 100%;
  max-width: 100%;
  height: 50px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background: #ffffff;
  padding: 0 0.9rem;
  font-size: 1rem;
  color: #16181d;
  box-shadow: none;
}

.auth-card .form-control:focus,
.auth-card .form-select:focus,
.auth-card .country-picker-toggle:focus {
  border-color: #009CFF;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 156, 255, 0.12);
}

#loginForm .field > label,
#adminLoginForm .field > label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.name-row {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.name-row .field {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.field {
  margin-bottom: 0.9rem;
}

.phone-box {
  display: flex;
  align-items: stretch;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background: #ffffff;
  overflow: hidden;
  height: 50px;
}

.phone-box:focus-within {
  border-color: #009CFF;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 156, 255, 0.12);
}

.phone-box .phone-code {
  display: flex;
  align-items: center;
  padding: 0 0.8rem;
  font-weight: 700;
  color: #009CFF;
  background: #e6eff5;
  white-space: nowrap;
  border: 0;
}

.phone-box .form-control {
  border: 0;
  background: transparent;
  border-radius: 0;
  box-shadow: none;
  height: 100%;
}

.phone-box .form-control:focus {
  box-shadow: none;
}

.country-picker {
  position: relative;
}

.country-picker-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  height: 50px;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background: #e6eff5;
  padding: 0 0.85rem;
  font-size: 0.9rem;
  color: #16181d;
  text-align: left;
  cursor: pointer;
}

.country-picker-toggle .country-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.country-picker-toggle i {
  color: #009CFF;
}

.country-picker-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 20;
  background: #fff;
  border: 1px solid #d6dee5;
  border-radius: 0;
  box-shadow: 0 16px 40px rgba(22, 24, 29, 0.12);
  overflow: hidden;
}

.country-picker.open .country-picker-menu {
  display: block;
}

.country-picker-menu input {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #e4ecf2;
  padding: 0.75rem 0.9rem;
  outline: none;
}

.country-list {
  max-height: 220px;
  overflow-y: auto;
}

.country-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 0.9rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.country-option:hover,
.country-option.active {
  background: #ecf4f9;
}

.country-option .opt-code {
  margin-left: auto;
  color: #009CFF;
  font-weight: 700;
  font-size: 0.82rem;
}

.password-field {
  position: relative;
}

.password-field .form-control {
  padding-right: 2.8rem;
}

.toggle-password {
  position: absolute;
  right: 0.2rem;
  top: auto;
  bottom: 0;
  height: 50px;
  transform: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  background: transparent;
  color: #009CFF;
  padding: 0 0.65rem;
  cursor: pointer;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin: 0.25rem 0 1.25rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.auth-check input {
  margin-top: 0.2rem;
}

.btn-auth {
  width: 100%;
  height: 50px;
  border: 0;
  border-radius: 5px;
  background: #009CFF;
  color: #fff;
  font-weight: 500;
  font-size: 1rem;
}

.btn-auth:hover {
  color: #fff;
  background: #0086db;
}

a.btn-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.1rem 0 0.9rem;
  color: #757575;
  font-size: 0.85rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ced4da;
}

.auth-social-row {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 44px;
  padding: 0 0.75rem;
  border: 1px solid #ced4da;
  border-radius: 5px;
  background: #fff;
  color: #191C24;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.social-btn[hidden],
.auth-social[hidden] {
  display: none !important;
}

html.auth-ke [data-non-ke-fields] {
  display: none !important;
}

.social-btn.is-busy {
  pointer-events: none;
  opacity: 0.7;
}

.social-btn--google:hover {
  background: #F3F6F9;
  border-color: #b8c0c8;
}

.social-btn--facebook {
  border-color: #1877F2;
  background: #1877F2;
  color: #fff;
}

.social-btn--facebook:hover {
  border-color: #166FE5;
  background: #166FE5;
}

/* Google's real button sits invisibly on top so clicks still open Google's own sign-in */
.social-btn__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  overflow: hidden;
}

.social-btn__overlay > div {
  transform: scale(1.25);
}

.auth-foot {
  text-align: center;
  margin-top: 1.15rem;
  color: #6b7280;
}

.auth-foot a,
.auth-check a {
  color: #009CFF;
  font-weight: 600;
  text-decoration: none;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0.15rem 0 1.15rem;
  font-size: 0.88rem;
}

.auth-row a {
  color: #009CFF;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.auth-success-icon {
  width: 64px;
  height: 64px;
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(0, 156, 255, 0.12);
  color: #009CFF;
  font-size: 2rem;
}

@media (max-width: 575.98px) {
  .auth-card { padding: 1.75rem 1.25rem; }
}
