/* Shared professional, responsive styling for Login Options 1-4. */
body.auth-page {
  width: 100%;
  min-width: 0;
  min-height: 100vh;
  min-height: 100dvh;
  height: auto;
  margin: 0;
  padding: 36px 18px;
  box-sizing: border-box;
  color: #0f172a;
  font-family: Inter, "Segoe UI", Roboto, Arial, sans-serif !important;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.28), transparent 32%),
    linear-gradient(145deg, rgba(15,23,42,.08), rgba(15,23,42,.22)) !important;
  background-attachment: fixed !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 85% 85%, rgba(255,255,255,.18), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(15,23,42,.05));
}

.auth-page *,
.auth-page *::before,
.auth-page *::after {
  box-sizing: border-box;
}

.auth-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.auth-page form,
.auth-page .input-group,
.auth-page .input-group > .form-control,
.auth-page .iti {
  min-width: 0;
  max-width: 100%;
}

.auth-page .input-group,
.auth-page .iti {
  width: 100%;
}

.auth-page .profile-img {
  display: block;
  width: auto !important;
  max-width: min(100%, 230px) !important;
  max-height: 92px;
  height: auto !important;
  margin: 0 auto 26px !important;
  object-fit: contain;
}

.auth-page h1 {
  margin: 0 0 24px;
  color: #0f172a;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.2;
}

.auth-page h5.page-header-sub {
  margin: 0 0 22px;
  color: #0f172a;
  font-size: 23px;
  font-weight: 700;
}

.auth-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.auth-page select,
.auth-page textarea,
.auth-page .input100,
.auth-page .form-control {
  width: 100%;
  min-height: 50px;
  margin: 0 0 14px;
  padding: 12px 15px !important;
  color: #0f172a !important;
  font-family: inherit !important;
  font-size: 15px !important;
  line-height: 1.4;
  background: #f8fafc !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 10px !important;
  outline: 0;
  box-shadow: none !important;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.auth-page input::placeholder,
.auth-page textarea::placeholder {
  color: #64748b;
  opacity: 1;
}

.auth-page input:not([type="checkbox"]):not([type="radio"]):focus,
.auth-page select:focus,
.auth-page textarea:focus,
.auth-page .input100:focus,
.auth-page .form-control:focus {
  background: #fff !important;
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37,99,235,.14) !important;
}

.auth-page button:not(.close),
.auth-page input[type="submit"],
.auth-page .login-submit,
.auth-page .login100-form-btn,
.auth-page .btn-primary {
  min-height: 48px;
  border: 0 !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: .01em;
  background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  box-shadow: 0 10px 22px rgba(37,99,235,.22);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

.auth-page button:not(.close):hover,
.auth-page input[type="submit"]:hover,
.auth-page .login-submit:hover,
.auth-page .login100-form-btn:hover,
.auth-page .btn-primary:hover {
  filter: brightness(.97);
  transform: translateY(-1px);
  box-shadow: 0 13px 26px rgba(37,99,235,.28);
}

.auth-page button:focus-visible,
.auth-page a:focus-visible,
.auth-page input:focus-visible,
.auth-page select:focus-visible,
.auth-page textarea:focus-visible {
  outline: 3px solid rgba(37,99,235,.35) !important;
  outline-offset: 2px;
}

.auth-page button:disabled,
.auth-page input[type="submit"]:disabled {
  cursor: not-allowed;
  opacity: .68;
  transform: none;
}

.auth-page a {
  color: #1d4ed8;
  font-weight: 600;
  text-decoration: none;
}

.auth-page a:hover {
  color: #1e40af;
  text-decoration: underline;
}

.auth-page .login-help,
.auth-page .message,
.auth-page .message_fp,
.auth-page #google_translate_element {
  color: #64748b !important;
  font-size: 13px !important;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.auth-page .login-help,
.auth-page .message,
.auth-page .message_fp {
  margin-top: 17px !important;
  text-align: center;
}

.auth-page .alert {
  width: 100%;
  max-width: 480px;
  margin: 0 auto 16px !important;
  padding: 12px 15px;
  border: 1px solid #fecaca;
  border-radius: 10px;
  overflow-wrap: anywhere;
}

.auth-page input[type="checkbox"],
.auth-page input[type="radio"] {
  position: static;
  z-index: auto;
  width: 19px;
  height: 19px;
  min-height: 0;
  margin: 0 8px 0 0;
  padding: 0;
  opacity: 1;
  transform: none;
  vertical-align: middle;
  flex: 0 0 19px;
}

.auth-page #simple_captcha_img {
  display: block;
  width: auto;
  max-width: calc(100% - 48px);
  height: 45px;
  object-fit: contain;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
}

.auth-captcha-row,
.auth-page #login-form > span:has(#simple_captcha_img) {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 2px 0 12px;
}

.auth-page #refresh_captcha_btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border: 1px solid #bfdbfe;
  border-radius: 9px;
  color: #1d4ed8;
  background: #eff6ff;
  font-size: 22px !important;
  text-decoration: none;
}

.auth-page #google_translate_element {
  width: 100%;
  max-width: 420px;
  margin: 18px auto 0 !important;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 10px;
  background: rgba(255,255,255,.92);
  text-align: center;
}

.auth-page #google_translate_element select {
  max-width: 100%;
  min-height: 36px;
  margin: 0;
  padding: 6px 10px !important;
  background: #fff !important;
}

.auth-page .your-custom-class {
  width: calc(100vw - 32px) !important;
  min-width: 0 !important;
  max-width: 520px;
  height: auto !important;
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  margin: 0 !important;
  padding: 22px !important;
  border-width: 0 !important;
  border-radius: 14px !important;
  color: #0f172a;
  background: #fff;
  box-shadow: 0 20px 60px rgba(15,23,42,.28);
  font-size: 15px !important;
  line-height: 1.5;
  overflow: auto;
  white-space: normal;
  overflow-wrap: anywhere;
}

.auth-page .your-custom-class > span {
  display: block;
  padding-left: 0 !important;
  margin-bottom: 12px;
  font-weight: 700;
  text-align: center;
}

.auth-page .your-custom-class > span + br {
  display: none;
}

/* Option 1: clean classic card. */
.auth-login-1 > .login {
  height: auto;
  padding: 0;
}

.auth-login-1 #login-container {
  width: 100%;
  max-width: 430px;
  margin: 0 auto !important;
  padding: 0 !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
}

.auth-login-1 #login-logo {
  display: none;
}

.auth-login-1 .login-card,
.auth-login-1 #reg_form,
.auth-login-1 #fp_form {
  width: 100%;
  max-width: 430px;
  margin: 0 auto !important;
  padding: 36px !important;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 20px;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 24px 65px rgba(15,23,42,.24);
}

.auth-login-1 .login-card input[type="submit"] {
  width: 100%;
}

.auth-login-1 .form-label {
  display: block;
  margin-bottom: 12px;
  color: #334155;
  font-weight: 600;
}

/* Option 2: modern wide card. */
body.auth-login-2 {
  padding: 0;
}

.auth-login-2 .container-login100 {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 36px 18px;
  background: transparent !important;
}

.auth-login-2 .wrap-login100 {
  width: 100%;
  max-width: 480px;
  min-width: 0;
  min-height: 0 !important;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 22px !important;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 26px 70px rgba(15,23,42,.25);
  overflow: hidden;
}

.auth-login-2 .wrap-login100 > .p-t-55 {
  padding: 42px !important;
}

.auth-login-2 .login100-form-title,
.auth-login-2 #otp-form .login100-form-title {
  position: static !important;
  display: block;
  margin-bottom: 24px;
  padding: 0 !important;
  color: #0f172a !important;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.2;
}

.auth-login-2 .wrap-input100 {
  height: auto !important;
  min-height: 0;
  margin-bottom: 14px !important;
  border: 0 !important;
}

.auth-login-2 .focus-input100 {
  display: none;
}

.auth-login-2 .container-login100-form-btn,
.auth-login-2 #signinbutton {
  width: 100% !important;
}

/* Options 3 and 4: focused authentication card. */
.auth-login-3 .login-page,
.auth-login-4 .login-page {
  width: 100% !important;
  max-width: 440px;
  margin: 0 auto;
  padding: 0;
}

.auth-login-3 > .form,
.auth-login-4 > .login-page > .form,
.auth-login-4 .form {
  width: 100%;
  max-width: 430px !important;
  margin: 0 auto !important;
  padding: 36px !important;
  border: 1px solid rgba(226,232,240,.95);
  border-radius: 20px;
  background: rgba(255,255,255,.98) !important;
  box-shadow: 0 24px 65px rgba(15,23,42,.24);
  text-align: center;
}

.auth-login-3 .login-page {
  max-width: 260px;
}

.auth-login-3 #login-form button,
.auth-login-4 #login-form button {
  width: 100%;
}

.auth-login-3 .login-page-logo,
.auth-login-4 .login-page-logo {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 16px;
  padding: 0;
}

.auth-login-3 .clearfix .pull-left,
.auth-login-3 .clearfix .pull-right,
.auth-login-4 .clearfix .pull-left,
.auth-login-4 .clearfix .pull-right {
  float: none !important;
  display: inline-block;
  margin: 4px;
}

@media (max-width: 640px) {
  body.auth-page,
  .auth-login-2 .container-login100 {
    padding: 18px 14px;
  }

  body.auth-login-2 {
    padding: 0;
  }

  .auth-login-1 .login-card,
  .auth-login-1 #reg_form,
  .auth-login-1 #fp_form,
  .auth-login-2 .wrap-login100 > .p-t-55,
  .auth-login-3 > .form,
  .auth-login-4 .form {
    padding: 26px 20px !important;
  }

  .auth-page .profile-img {
    max-height: 76px;
    margin-bottom: 20px !important;
  }

  .auth-page h1,
  .auth-login-2 .login100-form-title {
    font-size: 24px;
  }

  .auth-page input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
  .auth-page select,
  .auth-page textarea {
    font-size: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-page *,
  .auth-page *::before,
  .auth-page *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
