/* ===================================
   DCMA AUTH — style.css
   =================================== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg2: #111111;
  --bg3: #161616;
  --white: #ffffff;
  --w80: rgba(255, 255, 255, .80);
  --w40: rgba(255, 255, 255, .40);
  --w15: rgba(255, 255, 255, .15);
  --w08: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .10);
  --accent: #c8ff00;
  --fd: 'Syne', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --r: 16px;
  --rsm: 10px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur: .65s;
  --bw: 1060px;
  --bh: 720px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--fb);
  font-size: 15px;
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
}

@media (min-width:769px) {
  body {
    cursor: none;
  }
}

@media (max-width:768px) {
  body {
    cursor: auto;
    overflow-y: auto;
    overflow-x: hidden;
    height: auto;
  }
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: var(--fb);
}

::-webkit-scrollbar {
  width: 4px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--w15);
  border-radius: 2px;
}

/* ---- CURSOR (>768px only) ---- */
.cursor-dot {
  position: fixed;
  width: 6px;
  height: 6px;
  background: #fff;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: opacity .3s;
}

.cursor-circle {
  position: fixed;
  width: 40px;
  height: 40px;
  border: 1.5px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: width .4s var(--ease), height .4s var(--ease), border-color .3s, background .3s;
}

.cursor-circle.hover {
  width: 58px;
  height: 58px;
  border-color: var(--accent);
  background: rgba(200, 255, 0, .07);
}

.cursor-circle.click {
  width: 22px;
  height: 22px;
  background: rgba(255, 255, 255, .15);
}

@media (max-width:768px) {

  .cursor-dot,
  .cursor-circle {
    display: none !important;
  }
}

/* ---- PAGE BG ---- */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
}

.bg-orb-1 {
  width: 500px;
  height: 500px;
  background: rgba(200, 255, 0, .04);
  top: -150px;
  left: -100px;
}

.bg-orb-2 {
  width: 400px;
  height: 400px;
  background: rgba(255, 255, 255, .02);
  bottom: -100px;
  right: -80px;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .015) 1px, transparent 1px);
  background-size: 44px 44px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2.5rem;
  background: rgba(10, 10, 10, .85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: .55rem;
  font-family: var(--fd);
  font-weight: 700;
  font-size: 1.05rem;
}

.nav-back {
  font-size: .82rem;
  color: var(--w40);
  transition: color .3s;
}

.nav-back:hover {
  color: var(--white);
}

@media (min-width:769px) {

  .nav-logo,
  .nav-back {
    cursor: none;
  }
}

/* ---- PAGE LOADER ---- */
.page-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 9997;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .6s var(--ease), visibility .6s;
}

.page-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-text {
  font-family: var(--fd);
  font-size: 1.4rem;
  font-weight: 700;
  overflow: hidden;
}

.loader-text span {
  display: inline-block;
  animation: loaderUp .6s var(--ease) .2s both;
}

@keyframes loaderUp {
  from {
    transform: translateY(100%);
    opacity: 0
  }

  to {
    transform: translateY(0);
    opacity: 1
  }
}

/* ====================================
   DESKTOP AUTH LAYOUT  (>768px)
   Full slider card
   ==================================== */
.auth-container {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-box {
  position: relative;
  width: var(--bw);
  height: var(--bh);
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .04);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  cursor: none;
}

/* Forms — side by side */
.form-panel {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  z-index: 1;
}

#signInPanel {
  left: 0;
}

#signUpPanel {
  left: 50%;
}

.form-inner {
  width: 100%;
  max-width: 450px;
  padding: 1.6rem .5rem;
}

/* Overlay — slides left/right */
.overlay {
  position: absolute;
  top: 0;
  height: 100%;
  width: 50%;
  z-index: 20;
  overflow: hidden;
  left: 50%;
  transition: left var(--dur) var(--ease);
}

.auth-box.signup-active .overlay {
  left: 0;
}

.overlay-strip {
  display: flex;
  width: 200%;
  height: 100%;
  transform: translateX(0);
  transition: transform var(--dur) var(--ease);
}

.auth-box.signup-active .overlay-strip {
  transform: translateX(-50%);
}

.overlay-panel {
  width: 50%;
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #181818 0%, #0d0d0d 100%);
}

.ov-left {
  border-right: 1px solid var(--border);
}

.ov-right {
  border-left: 1px solid var(--border);
}

.overlay-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.ov-deco {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ov-circle {
  position: absolute;
  border-radius: 50%;
  background: rgba(200, 255, 0, .045);
}

.ov-c1 {
  width: 220px;
  height: 220px;
  top: -70px;
  right: -70px;
}

.ov-c2 {
  width: 150px;
  height: 150px;
  bottom: -50px;
  left: -50px;
}

.ov-ring {
  position: absolute;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  border: 1px solid rgba(200, 255, 0, .07);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.ov-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 2.2rem;
  text-align: center;
  max-width: 340px;
}

.ov-badge {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .85rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--w40);
  border: 1px solid var(--border);
  padding: .48rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.bdot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1)
  }

  50% {
    opacity: .4;
    transform: scale(.75)
  }
}

.ov-content h2 {
  font-family: var(--fd);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.ov-content h2 em {
  font-style: normal;
  color: var(--w40);
}

.ov-content p {
  font-size: 1rem;
  color: var(--w40);
  line-height: 1.75;
  margin-bottom: 2rem;
}

/* ====================================
   SHARED FORM ELEMENTS
   ==================================== */
.form-tag {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--w40);
  border: 1px solid var(--border);
  padding: .42rem 1rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.form-title {
  font-family: var(--fd);
  font-size: clamp(1.5rem, 2.4vw, 3rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}

.form-title em {
  font-style: normal;
  color: var(--w40);
}

#l-social-row {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
}
#s-social-row {
  display: flex;
  gap: .6rem;
  margin-bottom: 1rem;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  padding: .58rem;
  color: var(--w80);
  transition: all .3s var(--ease);
}

@media (min-width:769px) {
  .social-btn {
    cursor: none;
  }
}

@media (max-width:768px) {
  .social-btn {
    cursor: pointer;
  }
}

.social-btn:hover {
  border-color: var(--w15);
  background: var(--w08);
  transform: translateY(-2px);
}

.or-divider {
  display: flex;
  align-items: center;
  gap: .8rem;
  margin-bottom: 1rem;
  font-size: 1rem;
  color: var(--w40);
}

.or-divider::before,
.or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.input-group {
  margin-bottom: .90rem;
}

.input-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .55rem;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrap input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--rsm);
  padding: 1rem 2.52rem 1rem 2.52rem;
  color: var(--white);
  font-family: var(--fb);
  font-size: 1.1rem;
  outline: none;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s;
}

@media (min-width:769px) {
  .input-wrap input {
    cursor: none;
  }
}

@media (max-width:768px) {
  .input-wrap input {
    cursor: text;
  }
}

.input-wrap input::placeholder {
  color: var(--w40);
}

.input-wrap input:focus {
  border-color: var(--w15);
  background: rgba(255, 255, 255, .025);
  box-shadow: 0 0 0 3px rgba(200, 255, 0, .06);
}

.input-wrap input:hover:not(:focus) {
  border-color: rgba(255, 255, 255, .14);
}

.i-icon {
  position: absolute;
  left: .7rem;
  color: var(--w40);
  pointer-events: none;
  transition: color .3s;
  height: 30px;
  width: 18px;
}

.input-wrap:focus-within .i-icon {
  color: var(--accent);
}

.eye-btn {
  position: absolute;
  right: .7rem;
  background: none;
  border: none;
  color: var(--w40);
  display: flex;
  align-items: center;
  padding: .2rem;
  transition: color .3s;
}

@media (min-width:769px) {
  .eye-btn {
    cursor: none;
  }
}

@media (max-width:768px) {
  .eye-btn {
    cursor: pointer;
  }
}

.eye-btn:hover {
  color: var(--white);
}

.err-msg {
  font-size: .9rem;
  color: #ff6b6b;
  margin-top: .25rem;
  display: none;
}

.input-group.has-err .input-wrap input {
  border-color: rgba(255, 107, 107, .45);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, .06);
}

.input-group.has-err .err-msg {
  display: block;
}

.form-row-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  margin-top: .3rem;
}

.check-label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  color: var(--w40);
  user-select: none;
}

.check-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}

.forgot-link {
  font-size: 1rem;
  color: var(--w40);
  transition: color .3s;
}

.forgot-link:hover {
  color: var(--accent);
}

@media (min-width:769px) {

  .check-label,
  .check-label input[type="checkbox"],
  .forgot-link {
    cursor: none;
  }
}

@media (max-width:768px) {

  .check-label,
  .check-label input[type="checkbox"],
  .forgot-link {
    cursor: pointer;
  }
}

.strength-bar {
  display: flex;
  gap: 4px;
  margin-top: .35rem;
}

.s-seg {
  height: 3px;
  flex: 1;
  border-radius: 2px;
  background: var(--border);
  transition: background .3s;
}

.s-seg.weak {
  background: #ff4444;
}

.s-seg.medium {
  background: #ffaa00;
}

.s-seg.strong {
  background: var(--accent);
}

.strength-lbl {
  font-size: .7rem;
  color: var(--w40);
  margin-top: .15rem;
  display: block;
}

.terms-txt {
  font-size: 1rem;
  color: var(--w40);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.terms-txt a {
  color: var(--w80);
  text-decoration: underline;
  text-decoration-color: var(--border);
  transition: color .3s;
}

.terms-txt a:hover {
  color: var(--accent);
}

@media (min-width:769px) {
  .terms-txt a {
    cursor: none;
  }
}

@media (max-width:768px) {
  .terms-txt a {
    cursor: pointer;
  }
}

.btn-main {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  background: var(--white);
  color: #0a0a0a;
  padding: .82rem 1.5rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: .9rem;
  border: none;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

@media (min-width:769px) {
  .btn-main {
    cursor: none;
  }
}

@media (max-width:768px) {
  .btn-main {
    cursor: pointer;
  }
}

.btn-main::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200, 255, 0, .28), transparent);
  opacity: 0;
  transition: opacity .3s;
}

.btn-main:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 10px 35px rgba(255, 255, 255, .2);
}

.btn-main:hover::after {
  opacity: 1;
}

.btn-main:active {
  transform: scale(.98);
}

.btn-main.loading {
  pointer-events: none;
}

.btn-main.loading .btn-text {
  opacity: 0;
}

.btn-spinner {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(10, 10, 10, .25);
  border-top-color: #0a0a0a;
  border-radius: 50%;
  opacity: 0;
  animation: spin .6s linear infinite;
}

.btn-main.loading .btn-spinner {
  opacity: 1;
}
.btn-text{
  font-size: 20px;
}
@keyframes spin {
  to {
    transform: rotate(360deg)
  }
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--white);
  padding: .95rem 2.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  border: 1.5px solid var(--w15);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
}

@media (min-width:769px) {
  .btn-outline {
    cursor: none;
  }
}

@media (max-width:768px) {
  .btn-outline {
    cursor: pointer;
  }
}

.btn-outline::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s var(--ease);
  z-index: -1;
}

.btn-outline:hover {
  color: #0a0a0a;
  border-color: var(--white);
}

.btn-outline:hover::before {
  transform: scaleX(1);
}

.btn-outline:active {
  transform: scale(.97);
}

/* SUCCESS WRAP */
.success-wrap {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .6rem;
  padding: 1rem 0;
  min-height: 180px;
  justify-content: center;
}

.success-wrap.show {
  display: flex;
}

.success-wrap h3 {
  font-family: var(--fd);
  font-size: 1.25rem;
  font-weight: 700;
}

.success-wrap p {
  font-size: .82rem;
  color: var(--w40);
}

.success-icon {
  width: 50px;
  height: 50px;
  background: rgba(200, 255, 0, .1);
  border: 1.5px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: popIn .5s var(--ease);
}

@keyframes popIn {
  from {
    transform: scale(.4);
    opacity: 0
  }

  to {
    transform: scale(1);
    opacity: 1
  }
}

/* Mobile switcher — hidden on desktop */
.mobile-switcher {
  display: none;
}

/* ============================================================
   MOBILE / SMALL SCREEN  (<=768px)
   Single form, slide animation, toggle link
   ============================================================ */
@media (max-width:768px) {

  .navbar {
    padding: .85rem 1.2rem;
  }

  .nav-back {
    font-size: .78rem;
  }

  .auth-container {
    height: auto;
    min-height: 100vh;
    padding: 4.5rem 0 3rem;
    align-items: flex-start;
    display: block;
  }

  /* Card */
  .auth-box {
    width: 92%;
    max-width: 420px;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    display: flex;
    flex-direction: column;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .7);
  }

  /* Accent top bar */
  .auth-box::before {
    content: '';
    display: block;
    order: 0;
    flex-shrink: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    border-radius: var(--r) var(--r) 0 0;
  }

  /* Hide desktop overlay */
  .overlay {
    display: none !important;
  }

  /* Form panels */
  .form-panel {
    position: relative !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible;
    order: 1;
    padding: 1.8rem 1.6rem 1.4rem;
  }

  #signInPanel {
    display: flex;
  }

  #signUpPanel {
    display: none;
  }

  .auth-box.signup-active #signInPanel {
    display: none;
  }

  .auth-box.signup-active #signUpPanel {
    display: flex;
  }

  .form-inner {
    max-width: 100%;
    padding: 0;
    width: 100%;
  }

  /* Success wrap: no fixed height on mobile */
  .success-wrap {
    min-height: auto;
    padding: 1.5rem 0 .5rem;
  }

  /* Toggle link */
  .mobile-switcher {
    display: flex;
    align-items: center;
    justify-content: center;
    order: 2;
    padding: 1rem 1.6rem 1.4rem;
    font-size: .83rem;
    color: var(--w40);
    border-top: 1px solid var(--border);
    gap: .35rem;
    flex-wrap: wrap;
  }

  .mobile-switcher button {
    background: none;
    border: none;
    padding: 0;
    color: var(--accent);
    font-weight: 600;
    font-size: .83rem;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(200, 255, 0, .35);
    transition: color .2s;
    font-family: var(--fb);
  }

  .mobile-switcher button:hover {
    color: var(--white);
  }

  .switcher-to-signup {
    display: inline;
  }

  .switcher-to-login {
    display: none;
  }

  .auth-box.signup-active .switcher-to-signup {
    display: none;
  }

  .auth-box.signup-active .switcher-to-login {
    display: inline;
  }

  .form-title {
    font-size: 1.65rem;
    margin-bottom: 1rem;
  }

  .form-tag {
    margin-bottom: .65rem;
  }

  .btn-main {
    font-size: .92rem;
    padding: .88rem;
  }
}

@media (max-width:380px) {
  .input-row-2 {
    grid-template-columns: 1fr;
  }

  .auth-box {
    width: 96%;
  }
}