/* Tenacity Savings — Auth pages redesign */

:root {
  --auth-navy: #0b1a33;
  --auth-navy-soft: #132847;
  --auth-purple: #5d2684;
  --auth-purple-light: #7b3aad;
  --auth-gold: #c9a227;
  --auth-surface: #f4f6fb;
  --auth-border: rgba(11, 26, 51, 0.1);
  --auth-radius: 16px;
  --auth-radius-lg: 24px;
  --auth-font: "DM Sans", system-ui, sans-serif;
  --auth-heading: "Plus Jakarta Sans", system-ui, sans-serif;
}

.auth-page {
  font-family: var(--auth-font);
  background: var(--auth-surface);
  min-height: 100vh;
}

.auth-page #main {
  margin-top: 0;
  padding: 0;
  min-height: 100vh;
}

.auth-page .auth-main {
  min-height: 100vh;
}

.auth-page .auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

.auth-page .auth-brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 32px;
  padding: 40px 36px;
  color: #fff;
  background:
    linear-gradient(145deg, rgba(11, 26, 51, 0.94) 0%, rgba(93, 38, 132, 0.88) 100%),
    url("../img/hero-bg.jpg") center / cover no-repeat;
  overflow: hidden;
}

.auth-page .auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(11, 26, 51, 0.35), rgba(93, 38, 132, 0.25));
  pointer-events: none;
}

.auth-page .auth-brand > * {
  position: relative;
  z-index: 1;
}

.auth-page .auth-brand-logo img {
  max-width: 150px;
  height: auto;
  filter: brightness(0) invert(1);
}

.auth-page .auth-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.auth-page .auth-brand-badge i {
  color: var(--auth-gold);
}

.auth-page .auth-brand-content h1 {
  font-family: var(--auth-heading);
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
  color: #fff;
}

.auth-page .auth-brand-content p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 100%;
  margin-bottom: 20px;
}

.auth-page .auth-brand-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.auth-page .auth-brand-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.auth-page .auth-brand-features i {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--auth-gold);
  flex-shrink: 0;
}

.auth-page .auth-brand-footer {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

.auth-page .auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 40px 36px;
  background: var(--auth-surface);
}

.auth-page .auth-panel-top {
  margin-bottom: 16px;
}

.auth-page .auth-panel .trasbox {
  margin: 0 0 12px;
  text-align: right;
}

.auth-page .formBox-main.auth-card {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  padding: 36px 32px;
  border-radius: var(--auth-radius-lg);
  border: 1px solid var(--auth-border);
  box-shadow: 0 20px 60px rgba(11, 26, 51, 0.08);
  background: #fff;
}

.auth-page .auth-card-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: rgba(93, 38, 132, 0.1);
  color: var(--auth-purple);
  font-size: 28px;
}

.auth-page .otpBoxImg {
  margin: 0 auto 20px;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(93, 38, 132, 0.08);
  border: 1px solid rgba(93, 38, 132, 0.12);
}

.auth-page .otpBoxImg img {
  width: 56px;
  height: auto;
}

.auth-page .head-textmain {
  font-family: var(--auth-heading);
  font-size: 1.75rem !important;
  font-weight: 800 !important;
  color: var(--auth-navy);
  margin-bottom: 8px;
}

.auth-page .textcenter p,
.auth-page .fillText {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 8px;
}

.auth-page .fillText {
  text-align: center;
  margin-bottom: 20px;
}

.auth-page .form__box {
  margin: 16px 0;
}

.auth-page .form__box label,
.auth-page .formBox__inp label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--auth-navy);
  margin-bottom: 8px;
}

.auth-page .form__box label span {
  color: #dc3545;
}

.auth-page .form__box input,
.auth-page .form__box select,
.auth-page .formBox__inp input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  background: var(--auth-surface);
  font-size: 15px;
  color: var(--auth-navy);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-page .form__box input:focus,
.auth-page .formBox__inp input:focus,
.auth-page .form__box select:focus {
  outline: none;
  border-color: var(--auth-purple);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(93, 38, 132, 0.12);
}

.auth-page .form__box select {
  background-color: var(--auth-surface);
  cursor: pointer;
}

.auth-page .form__box.passBox,
.auth-page .formBox__inp .firstpass,
.auth-page .formBox__inp .confirmpass {
  position: relative;
}

.auth-page .confirmpass span,
.auth-page .firstpass span,
.auth-page .passBox span {
  position: absolute;
  right: 12px;
  top: 38px;
  transform: none;
  background: transparent;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--auth-purple);
  z-index: 2;
  cursor: pointer;
}

.auth-page .formBox__inp {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 16px 0;
}

.auth-page .formBox__inp .firstpass,
.auth-page .formBox__inp .confirmpass {
  margin: 0;
}

.auth-page .confirmpass {
  margin-left: 0;
}

.auth-page .chooseImg input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.auth-page .photo-field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--auth-navy);
  margin-bottom: 8px;
}

.auth-page .photo-upload {
  width: 100%;
  position: relative;
}

.auth-page .photo-upload__dropzone {
  position: relative;
  border: 2px dashed rgba(93, 38, 132, 0.28);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(93, 38, 132, 0.04) 0%, rgba(255, 255, 255, 1) 100%);
  padding: 0;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.auth-page .photo-upload__dropzone.is-dragover {
  border-color: var(--auth-purple);
  background: rgba(93, 38, 132, 0.06);
  box-shadow: 0 0 0 4px rgba(93, 38, 132, 0.08);
}

.auth-page .photo-upload__placeholder {
  display: block;
  padding: 14px 16px;
  margin: 0;
  cursor: pointer;
}

.auth-page .photo-upload__placeholder:hover {
  background: rgba(93, 38, 132, 0.06);
  border-radius: 10px;
}

.auth-page .photo-upload__icon {
  width: 36px;
  height: 36px;
  margin: 0 auto 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(93, 38, 132, 0.1);
  color: var(--auth-purple);
  font-size: 16px;
}

.auth-page .photo-upload__title {
  display: block;
  font-weight: 700;
  color: var(--auth-navy);
  font-size: 0.84rem;
  margin-bottom: 2px;
}

.auth-page .photo-upload__hint,
.auth-page .photo-upload__formats {
  display: block;
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}

.auth-page .photo-upload__formats {
  margin-top: 0;
  font-size: 0.72rem;
  color: #94a3b8;
}

.auth-page .photo-upload__preview {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px 16px;
}

.auth-page .photo-upload__preview.hide {
  display: none;
}

.auth-page .photo-upload__preview img {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(93, 38, 132, 0.15);
  box-shadow: 0 4px 12px rgba(11, 26, 51, 0.1);
}

.auth-page .photo-upload__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.auth-page .photo-upload__filename {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--auth-navy);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-page .photo-upload__change {
  border: none;
  background: transparent;
  color: var(--auth-purple);
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0;
  border-radius: 0;
  cursor: pointer;
  transition: color 0.2s ease;
}

.auth-page .photo-upload__change:hover {
  background: transparent;
  color: var(--auth-purple-light);
}

.auth-page .form__box button {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--auth-purple), var(--auth-purple-light));
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 10px 28px rgba(93, 38, 132, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.auth-page .form__box button:hover {
  background: linear-gradient(135deg, var(--auth-purple-light), var(--auth-purple));
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(93, 38, 132, 0.35);
  color: #fff;
}

.auth-page .form33Box {
  text-align: center;
  margin: 8px 0 4px;
}

.auth-page .form33Box button,
.auth-page .form33Box .resendBtn {
  background: transparent;
  border: none;
  font-weight: 700;
  color: var(--auth-purple);
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.auth-page .form33Box button:hover,
.auth-page .form33Box .resendBtn:hover {
  background: rgba(93, 38, 132, 0.08);
}

.auth-page .forgot-pass-btn {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--auth-purple);
}

.auth-page .forgot-pass-btn:hover {
  color: var(--auth-purple-light);
}

.auth-page .acct-create-btn {
  display: block;
  text-align: center;
  font-size: 14px;
  color: #64748b;
}

.auth-page .form-signup-text {
  color: var(--auth-purple);
  font-weight: 700;
}

.auth-page .auth-back-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
}

.auth-page .auth-back-link a {
  color: var(--auth-purple);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.auth-page .error {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #b42318;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  margin-bottom: 12px;
}

.auth-page .error:empty {
  display: none;
  padding: 0;
  border: none;
  margin: 0;
}

.auth-page .preloading-container {
  background-color: rgba(11, 26, 51, 0.55);
  backdrop-filter: blur(4px);
}

.auth-page .laoding-screen .loading-screenbox {
  border-radius: var(--auth-radius-lg);
  padding: 32px 24px;
  box-shadow: 0 24px 60px rgba(11, 26, 51, 0.2);
}

.auth-page .succBoxx span.times-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(93, 38, 132, 0.12);
  color: var(--auth-purple);
  font-size: 28px;
  font-weight: 700;
}

.auth-page .pendText {
  color: var(--auth-navy);
  font-size: 1.1rem;
}

.auth-page .logo-box {
  display: none;
}

.auth-page .contain3 {
  margin-top: 0 !important;
}

/* OTP code input */
.auth-page input[name="code"] {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  font-family: var(--auth-heading);
}

.auth-page .form33Box button:disabled,
.auth-page .resendBtn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Signup — scrollable form panel */
.auth-page--signup .auth-panel {
  justify-content: flex-start;
  overflow-y: auto;
  max-height: 100vh;
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (max-width: 991px) {
  .auth-page .auth-shell {
    grid-template-columns: 1fr;
  }

  .auth-page .auth-brand {
    padding: 32px 24px 28px;
    min-height: auto;
  }

  .auth-page .auth-brand-content h1 {
    font-size: 1.65rem;
  }

  .auth-page .auth-brand-features {
    display: none;
  }

  .auth-page .auth-brand-footer {
    display: none;
  }

  .auth-page .auth-panel {
    padding: 24px 20px 40px;
  }

  .auth-page .formBox-main.auth-card {
    padding: 28px 22px;
  }
}

@media (max-width: 640px) {
  .auth-page .formBox__inp {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-page .confirmpass {
    margin-top: 0;
  }

  .auth-page .confirmpass span,
  .auth-page .firstpass span,
  .auth-page .passBox span {
    top: 38px;
  }
}
