/**
 * Bliss Savings — Auth forms (compact)
 */

body.auth-page {
  --auth-navy: #0b2341;
  --auth-indigo: #414eda;
  font-family: "Poppins", sans-serif;
  min-height: 100vh;
  background: #f4f6f9;
}

body.auth-page #main {
  padding: 24px 16px 32px;
}

body.auth-page .auth-shell {
  max-width: 520px;
  margin: 0 auto;
}

body.auth-page .logo-box {
  margin-bottom: 20px;
  text-align: center;
}

body.auth-page .logo-box img {
  max-width: 170px;
}

body.auth-page .formBox-main {
  width: 100% !important;
  max-width: 520px;
  margin: 0 auto !important;
  padding: 28px 28px 24px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid rgba(11, 35, 65, 0.1);
  box-shadow: 0 8px 32px rgba(11, 35, 65, 0.08);
}

body.auth-page .head-textmain {
  font-weight: 700 !important;
  font-size: 22px !important;
  text-align: left;
  color: var(--auth-navy) !important;
  margin: 0 0 4px;
}

body.auth-page .fillText {
  font-size: 13px;
  color: rgba(11, 35, 65, 0.55);
  margin: 0 0 20px;
  text-align: left;
}

body.auth-page .error {
  margin: 0 0 12px;
  padding: 8px 12px;
  font-size: 13px;
  border-radius: 6px;
  background: rgba(196, 21, 21, 0.08);
  border: 1px solid rgba(196, 21, 21, 0.15);
}

body.auth-page .error:empty {
  display: none;
}

body.auth-page .auth-form-compact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
}

body.auth-page .form__box {
  margin: 0 0 12px;
}

body.auth-page .form__box--full {
  grid-column: 1 / -1;
}

body.auth-page .formBox__inp {
  display: contents;
}

body.auth-page .firstpass,
body.auth-page .confirmpass,
body.auth-page .passBox {
  position: relative;
  margin: 0 0 12px;
}

body.auth-page .confirmpass {
  margin-left: 0;
}

body.auth-page .auth-form-login {
  display: block;
}

body.auth-page .auth-form-login .form__box {
  margin: 0 0 14px;
}

body.auth-page .auth-form-row {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px !important;
}

body.auth-page .forgot-pass-btn {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-indigo);
  text-decoration: none;
  transition: color 0.2s ease;
}

body.auth-page .forgot-pass-btn:hover {
  color: #3540c4;
  text-decoration: underline;
}

body.auth-page .passBox .passInp {
  padding-right: 48px;
}

body.auth-page .form__box label,
body.auth-page .formBox__inp label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-navy);
  margin-bottom: 5px;
  text-transform: none;
  letter-spacing: 0;
}

body.auth-page .form__box input,
body.auth-page .form__box select,
body.auth-page .formBox__inp input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid rgba(11, 35, 65, 0.15);
  font-size: 14px;
  color: var(--auth-navy);
  background: #fff;
  transition: border-color 0.2s ease;
}

body.auth-page .form__box select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 16 16'%3E%3Cpath fill='%230b2341' d='M8 11L3 6h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 32px;
  cursor: pointer;
}

body.auth-page .form__box input:focus,
body.auth-page .formBox__inp input:focus,
body.auth-page .form__box select:focus {
  outline: none;
  border-color: var(--auth-indigo);
}

body.auth-page .confirmpass span,
body.auth-page .firstpass span,
body.auth-page .passBox span {
  position: absolute;
  right: 10px;
  top: 30px;
  transform: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--auth-indigo);
  background: transparent;
  padding: 2px 6px;
  cursor: pointer;
  text-transform: capitalize;
}

body.auth-page .formBox__inp input {
  padding-right: 48px;
}

body.auth-page .chooseImg {
  grid-column: 1 / -1;
}

body.auth-page .photo-upload {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px dashed rgba(65, 78, 218, 0.35);
  background: rgba(65, 78, 218, 0.03);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  min-height: 72px;
}

body.auth-page .photo-upload:hover {
  border-color: var(--auth-indigo);
  background: rgba(65, 78, 218, 0.06);
}

body.auth-page .photo-upload.has-file {
  border-style: solid;
  border-color: rgba(65, 78, 218, 0.25);
  background: #fff;
}

body.auth-page .photo-upload-preview {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(11, 35, 65, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

body.auth-page .photo-upload-preview i {
  font-size: 22px;
  color: rgba(11, 35, 65, 0.3);
}

body.auth-page .photo-upload-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.auth-page .photo-upload-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

@media screen and (max-width: 540px) {
  body.auth-page .photo-upload-hint {
    display: none;
  }
}

body.auth-page .photo-upload-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-navy);
}

body.auth-page .photo-upload-name {
  font-size: 12px;
  color: rgba(11, 35, 65, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.auth-page .photo-upload.has-file .photo-upload-name {
  color: var(--auth-indigo);
  font-weight: 500;
}

body.auth-page .photo-upload-hint {
  font-size: 11px;
  color: rgba(11, 35, 65, 0.35);
}

body.auth-page .photo-upload-btn {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-indigo);
  background: rgba(65, 78, 218, 0.1);
  padding: 8px 14px;
  border-radius: 6px;
  pointer-events: none;
}

body.auth-page .chooseImg .inpFile {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  border: none;
  padding: 0;
}

body.auth-page .form__box button {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 6px;
  background: var(--auth-indigo);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

body.auth-page .form__box button:hover {
  background: #3540c4;
  color: #fff;
}

body.auth-page .auth-form-footer {
  margin: 16px 0 0;
  text-align: center;
  font-size: 13px;
  color: rgba(11, 35, 65, 0.55);
}

body.auth-page .auth-form-footer a {
  color: var(--auth-indigo);
  font-weight: 600;
  text-decoration: none;
}

body.auth-page .auth-form-footer a:hover {
  text-decoration: underline;
}

/* Auth preloader */
body.auth-page .preloading-container {
  position: fixed;
  inset: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11, 35, 65, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.auth-page .preloading-container.notShow {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.auth-page .auth-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 32px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(11, 35, 65, 0.08);
  box-shadow: 0 16px 48px rgba(11, 35, 65, 0.2);
  min-width: 180px;
}

body.auth-page .auth-loader-ring {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 3px solid rgba(65, 78, 218, 0.15);
  border-top-color: var(--auth-indigo);
  animation: authSpin 0.75s linear infinite;
}

body.auth-page .auth-loader-text {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  color: var(--auth-navy);
  letter-spacing: 0.2px;
}

@keyframes authSpin {
  to { transform: rotate(360deg); }
}

/* OTP page */
body.auth-page .otpBoxImg {
  text-align: center;
  margin: 0 0 12px;
}

body.auth-page .otpBoxImg img {
  width: 48px;
  height: auto;
}

body.auth-page .form33Box {
  margin: 0 0 14px;
  text-align: center;
}

body.auth-page .form33Box button,
body.auth-page .resendBtn {
  background: transparent;
  border: none;
  font-weight: 600;
  font-size: 13px;
  color: var(--auth-indigo);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease;
}

body.auth-page .form33Box button:hover,
body.auth-page .resendBtn:hover {
  color: #3540c4;
  text-decoration: underline;
}

body.auth-page .form33Box button:disabled,
body.auth-page .resendBtn:disabled {
  color: rgba(11, 35, 65, 0.4);
  cursor: not-allowed;
  text-decoration: none;
}

@media screen and (max-width: 540px) {
  body.auth-page .formBox-main {
    padding: 22px 18px 18px;
  }

  body.auth-page .auth-form-compact {
    grid-template-columns: 1fr;
  }

  body.auth-page .formBox__inp {
    display: block;
  }
}
