/* =====================================================================
   Futuristic Auth Page -- Tamkeen Securities Login / Register
   Split-panel dark design. Scoped entirely under body.auth-futuristic
   so nothing here can leak into any other page that shares
   css/style.css or css/headerstyle.css.
   ===================================================================== */

body.auth-futuristic {
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* ---------- Calm animated page background ---------- */
body.auth-futuristic::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(135deg, #6f74d9 0%, #7b7fe0 45%, #8d7fe8 100%);
  background-size: 200% 200%;
  animation: authBgDrift 20s ease-in-out infinite;
}

@keyframes authBgDrift {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 0%; }
}

body.auth-futuristic .site-header,
body.auth-futuristic .body {
  background: transparent;
}

body.auth-futuristic hr { display: none; }

body.auth-futuristic .body {
  min-height: 82vh;
  position: relative;
  z-index: 2;
}

/* ---------- Header / brand (compact, minimal) ---------- */
body.auth-futuristic .site-header {
  position: relative;
  z-index: 2;
  animation: authFadeDown .7s ease both;
}

body.auth-futuristic .logo-name img {
  filter: drop-shadow(0 0 8px rgba(255,255,255,0.4));
}

body.auth-futuristic .logo-name h1 {
  color: #201f3d;
  text-shadow: 0 1px 2px rgba(255,255,255,0.25);
  letter-spacing: .3px;
}

@keyframes authFadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Card: split two-column panel ---------- */
body.auth-futuristic #main {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  width: 760px;
  max-width: 94vw;
  min-height: 480px;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(20,15,60,0.35);
  animation: authCardIn .8s .1s cubic-bezier(.2,.8,.2,1) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(26px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.auth-futuristic .auth-left {
  flex: 0 0 46%;
  max-width: 46%;
  background: #14152f;
  color: #e7e8f6;
  padding: 46px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Decorative animated wave-art right panel (pure CSS, no markup needed) */
body.auth-futuristic .auth-right {
  flex: 1 1 auto;
  position: relative;
  overflow: hidden;
  background: #0d0e24;
}

body.auth-futuristic .auth-right::before,
body.auth-futuristic .auth-right::after {
  content: "";
  position: absolute;
  inset: -20%;
  background-image:
    radial-gradient(closest-side, rgba(63,111,228,0.9), transparent 70%),
    radial-gradient(closest-side, rgba(123,63,228,0.85), transparent 70%),
    radial-gradient(closest-side, rgba(255,79,216,0.55), transparent 70%);
  background-repeat: no-repeat;
  background-size: 65% 65%, 55% 55%, 40% 40%;
  background-position: 10% 20%, 85% 55%, 55% 85%;
  filter: blur(40px);
  animation: authWaveDrift 14s ease-in-out infinite alternate;
}

body.auth-futuristic .auth-right::after {
  animation-duration: 19s;
  animation-direction: alternate-reverse;
  opacity: .7;
}

@keyframes authWaveDrift {
  0%   { transform: translate(0,0) rotate(0deg) scale(1); }
  100% { transform: translate(4%, -4%) rotate(8deg) scale(1.12); }
}

/* ---------- Left-panel headings ---------- */
body.auth-futuristic .login-box h2,
body.auth-futuristic .register-box h2 {
  color: #ffffff;
  font-variant: normal;
  text-align: left;
  font-size: 1.7em;
  font-weight: 700;
  margin: 0 0 10px;
  letter-spacing: -.2px;
}

body.auth-futuristic .auth-subtitle {
  color: #9aa0c0;
  font-size: .92em;
  line-height: 1.5;
  margin: 0 0 22px;
}

/* ---------- Tab switcher: plain inline text links ---------- */
body.auth-futuristic #tab-btn {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
  background: none;
  border: none;
  padding: 0;
}

body.auth-futuristic #tab-btn a {
  position: relative;
  color: #7f86b8;
  text-decoration: none;
  font-weight: 600;
  font-size: .95em;
  padding-bottom: 3px;
  transition: color .25s ease;
}

body.auth-futuristic #tab-btn a:not(:first-child)::before {
  content: "/";
  position: absolute;
  left: -10px;
  color: #454a70;
}

body.auth-futuristic #tab-btn a.active {
  color: #ffffff;
  border-bottom: 2px solid #7c6ff2;
}

body.auth-futuristic #tab-btn a:hover { color: #c9cdf0; }

/* ---------- Underlined minimal inputs ---------- */
body.auth-futuristic .inp,
body.auth-futuristic input[type="email"],
body.auth-futuristic input[type="password"],
body.auth-futuristic input[type="text"] {
  display: block;
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1.5px solid rgba(255,255,255,0.22);
  border-radius: 0;
  color: #ffffff;
  padding: 10px 2px;
  margin: 16px 0 6px;
  transition: border-color .25s ease, box-shadow .25s ease;
}

body.auth-futuristic .inp::placeholder,
body.auth-futuristic input::placeholder {
  color: #7f86b8;
}

body.auth-futuristic .inp:focus,
body.auth-futuristic input:focus {
  outline: none;
  border-bottom-color: #7c6ff2;
  box-shadow: 0 1px 0 0 #7c6ff2;
}

/* Keep Chrome/Safari autofill in line with the dark theme */
body.auth-futuristic input:-webkit-autofill,
body.auth-futuristic input:-webkit-autofill:hover,
body.auth-futuristic input:-webkit-autofill:focus,
body.auth-futuristic input:-webkit-autofill:active {
  -webkit-text-fill-color: #ffffff;
  -webkit-box-shadow: 0 0 0px 1000px #14152f inset;
  box-shadow: 0 0 0px 1000px #14152f inset;
  caret-color: #ffffff;
  transition: background-color 9999s ease-in-out 0s;
}

/* ---------- Remember-me / forgot-password row ---------- */
body.auth-futuristic .auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 6px;
}

body.auth-futuristic .remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b7bce2;
  font-size: .88em;
  cursor: pointer;
  user-select: none;
}

body.auth-futuristic .remember-me input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #7c6ff2;
  cursor: pointer;
}

body.auth-futuristic #forgot {
  color: #9aa0c0;
  font-size: .88em;
  text-decoration: underline;
  transition: color .2s ease;
}
body.auth-futuristic #forgot:hover { color: #ffffff; }

/* ---------- Gradient pill CTA button ---------- */
body.auth-futuristic .sub-btn {
  width: 100%;
  border: none;
  padding: 14px 0;
  border-radius: 999px;
  margin-top: 20px;
  font-weight: 700;
  letter-spacing: .3px;
  color: #ffffff;
  background: linear-gradient(90deg, #7b3fe4, #3f6fe4);
  background-size: 200% auto;
  box-shadow: 0 10px 26px rgba(90,80,220,0.4);
  transition: background-position .4s ease, transform .15s ease, box-shadow .25s ease;
}

body.auth-futuristic .sub-btn:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(90,80,220,0.55);
}

body.auth-futuristic .sub-btn:active { transform: translateY(0); }

/* ---------- Validation feedback ---------- */
body.auth-futuristic .invalid-feedback {
  color: #ff9bb3;
  display: block;
  font-size: .8em;
  margin: 2px 0 4px;
}

body.auth-futuristic .inp.is-invalid,
body.auth-futuristic input.is-invalid {
  border-bottom-color: #ff6b8b;
}

/* ---------- Footer ---------- */
body.auth-futuristic footer {
  position: relative;
  z-index: 2;
}

/* ---------- Motion & small-screen safety ---------- */
@media (prefers-reduced-motion: reduce) {
  body.auth-futuristic *,
  body.auth-futuristic *::before,
  body.auth-futuristic *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media (max-width: 760px) {
  body.auth-futuristic #main {
    flex-direction: column;
    width: 92vw;
    min-height: 0;
  }
  body.auth-futuristic .auth-left {
    flex: 1 1 auto;
    max-width: 100%;
    padding: 34px 26px;
  }
  body.auth-futuristic .auth-right { display: none; }
}

/* Defensive resets in case a stale cached copy of an earlier
   revision of this file is still active in a visitor's browser */
body.auth-futuristic #tab-btn::before,
body.auth-futuristic #tab-btn::after {
  content: none !important;
  display: none !important;
}
body.auth-futuristic #tab-btn a.active {
  background: transparent !important;
  box-shadow: none !important;
}

/* The site's own style.css gives .login-box/.register-box a light
   card background + shadow + padding -- neutralize that so the
   dark .auth-left panel background shows through cleanly. */
body.auth-futuristic .login-box,
body.auth-futuristic .register-box {
  background: transparent !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  width: auto !important;
}

/* Fully neutralize the site's original pill-button look for the
   tab links in both states -- this design uses plain text links. */
body.auth-futuristic #tab-btn a,
body.auth-futuristic #tab-btn a.active,
body.auth-futuristic #tab-btn a:not(.active) {
  background: transparent !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 0 3px 0 !important;
}
