/* ═══════════════════════════════════════════════════════════════════════
   TimeterestPay — Auth pages redesign (login / register)
   Split-screen: navy brand panel + white form panel
   Brand: navy #192F7A · red #F0445E
   ═══════════════════════════════════════════════════════════════════════ */
.tp-auth {
  --tp-navy: #192F7A;
  --tp-red: #F0445E;
  --tp-ink: #141a2e;
  --tp-mut: #64708c;
  --tp-line: rgba(25, 47, 122, .10);
  display: flex;
  min-height: 100vh;
  background: #fff;
  font-family: "Outfit", "Poppins", sans-serif;
}

/* ── Brand panel (left) ─────────────────────────────────────────────── */
.tp-auth-brand {
  position: relative;
  flex: 0 0 52%;
  max-width: 52%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(36px, 5vw, 72px) clamp(30px, 4.5vw, 72px) 28px;
  color: #c9d2ec;
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 88% -8%, rgba(240, 68, 94, .30), transparent 60%),
    radial-gradient(760px 420px at -12% 30%, rgba(74, 104, 230, .30), transparent 55%),
    linear-gradient(165deg, #1d2f80 0%, #14215c 48%, #0d1538 100%);
}
.tp-auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at 60% 30%, #000 30%, transparent 75%);
  pointer-events: none;
}

.tp-auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: clamp(26px, 3.5vh, 44px);
}

.tp-auth-logo img {
  height: 48px;
  width: auto;
  display: block;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .4));
}

.tp-auth-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #ffb3c0;
  background: rgba(240, 68, 94, .14);
  border: 1px solid rgba(240, 68, 94, .30);
  padding: 7px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tp-auth-title {
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  max-width: 560px;
}
.tp-auth-sub {
  font-size: 15.5px;
  line-height: 1.75;
  color: #aab6dd;
  margin: 0;
  max-width: 500px;
}

/* Phone mockup */
.tp-auth-phone {
  position: relative;
  margin: 6px 0 6px auto;
}
.tp-phone-frame {
  width: 236px;
  height: 472px;
  border-radius: 40px;
  background: linear-gradient(180deg, #0c1436, #131d4d);
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow:
    0 34px 80px rgba(4, 8, 28, .55),
    inset 0 1px 0 rgba(255, 255, 255, .14);
  padding: 10px;
}
.tp-phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.tp-phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--tp-ink);
}
.tp-phone-ic {
  display: inline-flex;
  gap: 5px;
  font-size: 12px;
  color: var(--tp-ink);
}
.tp-phone-app {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 8px 16px 16px;
  text-align: center;
}
.tp-phone-appname {
  font-size: 13px;
  font-weight: 800;
  color: var(--tp-navy);
  margin-bottom: 14px;
}
.tp-phone-avail {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--tp-mut);
}
.tp-phone-balance {
  font-size: 19px;
  font-weight: 800;
  color: var(--tp-ink);
  margin: 2px 0 12px;
}
.tp-phone-qr {
  width: 128px;
  height: 128px;
  border-radius: 14px;
  border: 1.5px solid rgba(25, 47, 122, .16);
  background: #fff;
  padding: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
}
.tp-phone-qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  image-rendering: pixelated;
}
.tp-phone-qrlabel {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--tp-mut);
  margin-bottom: 10px;
}
.tp-phone-pay {
  border: none;
  cursor: pointer;
  width: 100%;
  padding: 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #F0445E, #d62a54);
  box-shadow: 0 10px 22px rgba(240, 68, 94, .35);
}
.tp-phone-toast {
  position: absolute;
  top: 64px;
  right: -58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--tp-line);
  box-shadow: 0 18px 44px rgba(12, 20, 54, .22);
  animation: tpToastFloat 3.2s ease-in-out infinite;
}
.tp-phone-toast i {
  font-size: 22px;
  color: #3dd68c;
}
.tp-phone-toast span {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.3;
}
.tp-phone-toast strong {
  font-size: 12.5px;
  color: var(--tp-ink);
}
.tp-phone-toast small {
  font-size: 11px;
  color: var(--tp-mut);
}
@keyframes tpToastFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Feature bullets */
.tp-auth-feats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 26px;
}
.tp-auth-feats li {
  display: flex;
  align-items: center;
  gap: 11px;
}
.tp-auth-feats li i {
  flex: 0 0 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 17px;
  color: #ffb3c0;
  background: rgba(240, 68, 94, .12);
  border: 1px solid rgba(240, 68, 94, .22);
}
.tp-auth-feats li span {
  display: flex;
  flex-direction: column;
  font-size: 12.5px;
  color: #aab6dd;
  line-height: 1.35;
}
.tp-auth-feats li strong {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}
.tp-auth-brand-foot {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 12.5px;
  color: #6f7cab;
}

/* ── Short viewports: scale phone, tighten spacing ────────────────── */
@media (max-height: 800px) {
  .tp-auth-brand { padding-top: 30px; padding-bottom: 18px; }
  .tp-auth-brand-inner { gap: 18px; }
  .tp-auth-copy { margin-top: -6px; }
  .tp-auth-title { font-size: clamp(24px, 3vw, 34px); margin-bottom: 10px; }
  .tp-auth-sub { font-size: 14px; }
  .tp-auth-phone { transform: scale(.82); transform-origin: top right; margin-top: -34px; margin-bottom: -34px; }
  .tp-auth-feats li i { flex-basis: 32px; height: 32px; font-size: 15px; }
  .tp-auth-feats { gap: 10px 18px; }
}
@media (max-height: 640px) {
  .tp-auth-phone { transform: scale(.68); margin-top: -70px; margin-bottom: -70px; }
  .tp-auth-feats { display: none; }
}

/* ── Form panel (right) ─────────────────────────────────────────────── */
.tp-auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(28px, 5vw, 72px);
  background:
    radial-gradient(600px 300px at 100% 0%, rgba(240, 68, 94, .05), transparent 60%),
    radial-gradient(600px 360px at 0% 100%, rgba(25, 47, 122, .05), transparent 60%),
    #fff;
}
.tp-auth-card {
  width: 100%;
  max-width: 452px;
}
.tp-auth-mobile-logo {
  display: none;
  margin-bottom: 26px;
}
.tp-auth-mobile-logo img {
  height: 40px;
  width: auto;
}

.tp-auth-head {
  margin-bottom: 24px;
}
.tp-auth-welcome {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tp-red);
  background: rgba(240, 68, 94, .08);
  border: 1px solid rgba(240, 68, 94, .18);
  padding: 6px 13px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.tp-auth-card-title {
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  color: var(--tp-ink);
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}
.tp-auth-card-sub {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--tp-mut);
  margin: 0;
}

/* Form */
.tp-auth-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.tp-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tp-label {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--tp-ink);
}
.tp-req { color: var(--tp-red); }
.tp-input-wrap {
  position: relative;
}
.tp-input-wrap > i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #9aa6c7;
  pointer-events: none;
  z-index: 2;
  transition: color .2s ease;
}
.tp-input-wrap:focus-within > i { color: var(--tp-red); }

/* Injected fields (JS renders .credentials / .password-field content) */
.tp-auth .form-group {
  margin-bottom: 18px;
}
.tp-auth .form--control,
.tp-auth .form-control {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid rgba(25, 47, 122, .14);
  border-radius: 14px;
  background: #fafbff;
  color: var(--tp-ink);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.tp-auth .form--control:focus,
.tp-auth .form-control:focus {
  border-color: rgba(240, 68, 94, .55);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(240, 68, 94, .10);
}
.tp-auth .form--control::placeholder { color: #9aa6c7; }

/* Selects (nice-select + native) */
.tp-auth .nice-select {
  width: 100%;
  height: 52px;
  line-height: 50px;
  border: 1.5px solid rgba(25, 47, 122, .14);
  border-radius: 14px;
  background: #fafbff;
  padding-left: 46px;
  font-size: 14.5px;
  color: var(--tp-ink);
}
.tp-auth .nice-select:after {
  border-bottom: 1.5px solid var(--tp-ink);
  border-right: 1.5px solid var(--tp-ink);
  right: 18px;
}
.tp-auth .nice-select .option {
  font-size: 13.5px;
  min-height: 38px;
  line-height: 38px;
}
.tp-auth .nice-select .list {
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(12, 20, 54, .18);
  border: 1px solid var(--tp-line);
}

/* Input group (phone code + field) */
.tp-auth .input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
}
.tp-auth .input-group-prepend .input-group-text {
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  border: 1.5px solid rgba(25, 47, 122, .14);
  border-right: none;
  border-radius: 14px 0 0 14px;
  background: #f0f2fb;
  color: var(--tp-navy);
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tp-auth .input-group .form--control {
  border-radius: 0 14px 14px 0;
}
.tp-auth .input-group-prepend .input-group-text.copytext.nice-select {
  background: #f0f2fb;
  border-right: none;
  border-radius: 14px 0 0 14px;
  padding-left: 14px;
  width: auto;
}
.tp-auth .input-group-prepend .input-group-text.copytext.nice-select .current {
  color: var(--tp-navy);
}

/* Password show/hide */
.tp-auth #show_hide_password {
  position: relative;
}
.tp-auth #show_hide_password .form--control,
.tp-auth #show_hide_password .form-control {
  padding-right: 48px;
}
.tp-auth #show_hide_password .show-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa6c7;
  font-size: 15px;
  z-index: 2;
}
.tp-auth #show_hide_password .show-pass:hover { color: var(--tp-red); }

/* Checkbox (terms) */
.tp-auth .custom-check-group {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 2px;
}
.tp-auth .custom-check-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--tp-red);
  flex: 0 0 auto;
}
.tp-auth .custom-check-group label {
  font-size: 13.5px;
  color: var(--tp-mut);
  line-height: 1.55;
}
.tp-auth .custom-check-group label a {
  color: var(--tp-red);
  font-weight: 700;
  text-decoration: none;
}
.tp-auth .custom-check-group label a:hover { text-decoration: underline; }

/* Forgot row */
.tp-form-row {
  display: flex;
  justify-content: flex-end;
}
.tp-forgot {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tp-red);
  text-decoration: none;
}
.tp-forgot:hover { text-decoration: underline; }

/* Submit */
.tp-auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 24px;
  border: none;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 800;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #F0445E 0%, #d62a54 100%);
  box-shadow: 0 14px 32px rgba(240, 68, 94, .32);
  transition: transform .25s ease, box-shadow .25s ease;
}
.tp-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(240, 68, 94, .42);
}

/* Or divider */
.tp-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 4px 0;
}
.tp-or-line {
  flex: 1;
  height: 1px;
  background: var(--tp-line);
}
.tp-or-title {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #9aa6c7;
}

/* Switch link */
.tp-switch {
  text-align: center;
}
.tp-switch p {
  margin: 0;
  font-size: 14px;
  color: var(--tp-mut);
}
.tp-switch-link {
  color: var(--tp-red);
  font-weight: 800;
  text-decoration: none;
  margin-left: 4px;
}
.tp-switch-link:hover { text-decoration: underline; }

/* Recaptcha spacing */
.tp-auth-form .g-recaptcha,
.tp-auth-form .captcha-box {
  margin-bottom: 2px;
}
.tp-auth-form .text-danger.exits { font-size: 12px; }
.tp-auth-form .invalid-feedback { display: block; margin-top: 6px; font-size: 12.5px; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 1080px) {
  .tp-auth-brand { flex-basis: 46%; max-width: 46%; }
  .tp-phone-toast { right: -20px; }
}
@media (max-width: 900px) {
  .tp-auth { flex-direction: column; }
  .tp-auth-brand {
    flex: none;
    max-width: none;
    padding: 32px 28px 24px;
    gap: 0;
  }
  .tp-auth-brand-inner { gap: 22px; }
  .tp-auth-title { font-size: 26px; }
  .tp-auth-phone { display: none; }
  .tp-auth-feats { gap: 12px 20px; }
  .tp-auth-brand-foot { display: none; }
  .tp-auth-mobile-logo { display: block; }
  .tp-auth-panel { padding: 34px 22px 48px; }
}
@media (max-width: 480px) {
  .tp-auth-brand { padding: 24px 20px 20px; }
  .tp-auth-feats { flex-direction: column; gap: 10px; }
}

/* ============================================================
   KYC registration page fix (2026-09-16)
   register-kyc.blade.php still uses the LEGACY .account markup,
   but the auth pages were migrated to the .tp-auth-* split layout.
   The legacy rule `.account .account-wrapper.kyc { width:1000px }`
   overflowed the new panel and clipped the right-hand fields.
   Scope a responsive, panel-friendly layout for that page only.
   ============================================================ */
.tp-auth-panel:has(.account.kyc) .tp-auth-card { max-width: 820px; }

.tp-auth-panel .account.kyc {
  display: block;
  min-height: 0;
  padding: 0;
  background: transparent;
}
.tp-auth-panel .account.kyc .account-area,
.tp-auth-panel .account.kyc .account-wrapper.kyc,
.tp-auth-panel .account.kyc .account-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  display: block;
  position: static;
}
/* the panel already prints the logo; hide the duplicated one + decorative bubbles */
.tp-auth-panel .account.kyc .account-logo,
.tp-auth-panel .account.kyc .bg-bubbles { display: none !important; }

.tp-auth-panel .account.kyc .title,
.tp-auth-panel .account.kyc > .account-area > .account-wrapper > p { text-align: left; }

/* keep the form grid inside the panel */
.tp-auth-panel .account.kyc .account-form,
.tp-auth-panel .account.kyc .row { width: 100%; margin-left: 0; margin-right: 0; }
.tp-auth-panel .account.kyc .form-group { min-width: 0; }

/* file inputs: legacy styling made them look like empty grey boxes */
.tp-auth-panel .account.kyc input[type="file"].form--control {
  height: auto;
  padding: 11px 14px;
  line-height: 1.35;
  cursor: pointer;
}
.tp-auth-panel .account.kyc input[type="file"].form--control::file-selector-button {
  border: 0;
  margin-right: 12px;
  padding: 7px 14px;
  border-radius: 8px;
  background: rgba(25, 47, 122, .10);
  color: #192f7a;
  font-weight: 600;
  cursor: pointer;
}
.tp-auth-panel .account.kyc .file-holder-wrapper .form-group { margin-bottom: 0; }

/* country select2 must fill its column */
.tp-auth-panel .account.kyc .select2-container { width: 100% !important; }
.tp-auth-panel .account.kyc select.form--control { width: 100% !important; }

/* phone input group alignment */
.tp-auth-panel .account.kyc .input-group { flex-wrap: nowrap; }
.tp-auth-panel .account.kyc .input-group .phone-code { min-width: 0; }

/* ── KYC page: give the (3-column) KYC form real room ──────────────── */
.tp-auth:has(.account.kyc) .tp-auth-brand { flex: 0 0 30%; max-width: 30%; }
.tp-auth-panel:has(.account.kyc) .tp-auth-card { max-width: 780px; }

/* the email field sits in an input-group with a prepended label — let it fill */
.tp-auth-panel .account.kyc .input-group > .form--control {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
}
.tp-auth-panel .account.kyc .input-group > .input-group-prepend,
.tp-auth-panel .account.kyc .input-group > .input-group-text {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* stack the 3-up rows a bit sooner so fields never squeeze */
@media (max-width: 1400px) {
  .tp-auth-panel .account.kyc .row > .col-xl-4 { flex: 0 0 50%; max-width: 50%; }
}
@media (max-width: 991px) {
  .tp-auth:has(.account.kyc) .tp-auth-brand { display: none; }
  .tp-auth-panel:has(.account.kyc) .tp-auth-card { max-width: 620px; }
  .tp-auth-panel .account.kyc .row > .col-xl-4,
  .tp-auth-panel .account.kyc .row > .col-lg-6 { flex: 0 0 100%; max-width: 100%; }
}
