/* Defortz ID — Liquid Glass Black/Purple (no gradients, no borders) */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@200;300;400;500&display=swap');

:root{
  --bg0:#07000f;
  --bg1:#0b0016;
  --panel:rgba(255,255,255,.055);
  --panel2:rgba(255,255,255,.075);
  --text:#f2ecff;
  --muted:rgba(242,236,255,.72);
  --muted2:rgba(242,236,255,.55);
  --accent:#9b5cff;
  --accent2:#c7a6ff;
  --danger:#ff4d6d;
  --ok:#35d07f;
  --shadow:0 18px 60px rgba(0,0,0,.55);
  --shadow2:0 10px 26px rgba(0,0,0,.45);
  --radius:22px;
  --radius2:16px;
  --blur:18px;
  --speed:.22s;
}

*{box-sizing:border-box}
html,body{height:100%}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Manrope","Inter",system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
  background:
    radial-gradient(160vmax 110vmax at 50% 52%, rgba(98,40,196,.24), rgba(7,0,15,.96) 62%, #07000f 100%),
    var(--bg0);
  color:var(--text);
  min-height:100vh;
  overflow-x:hidden;
}

/* Background: active layered atmosphere */
.background-elements{
  position:fixed; inset:0;
  z-index:-2;
  pointer-events:none;
  overflow:hidden;
  background:transparent;
}
.background-elements::before{
  content:none;
}
.background-elements::after{
  content:none;
}

/* blurred blobs */
.purple-orb{
  position:absolute;
  border-radius:52% 48% 44% 56% / 57% 43% 57% 43%;
  opacity:.46;
  filter:blur(56px) saturate(130%);
  mix-blend-mode:normal;
  background:rgba(155,92,255,.55);
  will-change:transform, opacity, filter;
}

/* animated grain */
body::after{
  content:"";
  position:fixed; inset:0;
  pointer-events:none;
  z-index:-1;
  opacity:.035;
  background:rgba(255,255,255,.06);
  mix-blend-mode:normal;
  animation: grain 28s linear infinite;
}
@keyframes grain{
  0%{transform:translate3d(0,0,0)}
  25%{transform:translate3d(1.2%,-1%,0)}
  50%{transform:translate3d(-1%,1.4%,0)}
  75%{transform:translate3d(1.5%,.6%,0)}
  100%{transform:translate3d(0,0,0)}
}

/* Layout container */
.form-container{
  width:min(1060px, calc(100% - 28px));
  margin: clamp(18px, 6vh, 64px) auto;
  display:grid;
  grid-template-columns: 1.02fr 1fr;
  gap:18px;
  align-items:stretch;
  perspective: 900px;
}

@media (max-width: 900px){
  .form-container{grid-template-columns:1fr; margin:18px auto 36px}
  .side-panel{display:none !important}
}

.side-panel, .forms{
  border-radius:var(--radius);
  background:var(--panel);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  box-shadow:var(--shadow);
  position:relative;
  overflow:hidden;
  transform: translate3d(0,0,0);
}

/* specular highlight band (no gradients) */
.side-panel::before, .forms::before{
  content:"";
  position:absolute;
  width:180px; height:520px;
  left:-120px; top:-140px;
  background:rgba(255,255,255,.07);
  transform:rotate(28deg);
  filter: blur(0px);
  opacity:.8;
  animation: specular 6.8s ease-out 1 forwards;
  pointer-events:none;
}
.forms::before{left:auto; right:-130px; top:-120px; opacity:.65}
@keyframes specular{
  from{transform:translate3d(0,0,0) rotate(28deg)}
  to{transform:translate3d(120px, 80px, 0) rotate(28deg)}
}

.side-panel{
  padding:26px 24px;
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:18px;
  min-height:520px;
}
@media (max-width:900px){
  .side-panel{min-height:auto; padding:22px 18px}
}
.side-panel .features, .side-panel .features-placeholder{margin-top:auto}

.logo{
  font-weight:600;
  letter-spacing:.2px;
  font-size:18px;
  color:var(--text);
  opacity:.92;
  display:flex;
  align-items:center;
  gap:10px;
}
.logo::before{
  content:"";
  width:10px; height:10px;
  border-radius:999px;
  background:rgba(155,92,255,.9);
  box-shadow:0 10px 18px rgba(0,0,0,.35);
}

.side-title{
  font-size:34px;
  line-height:1.06;
  font-weight:600;
  margin-top:18px;
}
.side-subtitle{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
  max-width: 44ch;
}
.side-features{
  margin-top:18px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}
.feature{
  background:rgba(255,255,255,.05);
  padding:10px 12px;
  border-radius:14px;
  color:var(--muted);
  font-size:13px;
  box-shadow: var(--shadow2);
  transform: translate3d(0,0,0);
  transition: transform var(--speed) ease, background var(--speed) ease;
}
.feature:hover{transform:translate3d(0,-2px,0); background:rgba(255,255,255,.07)}

.forms{
  padding:32px 30px 26px;
  display:flex;
  flex-direction:column;
  justify-content:center;
  min-height:520px;
}
@media (max-width:900px){
  .forms{min-height:auto; padding:22px 18px}
}

.form h2, .form h1{
  margin:0 0 16px 0;
  font-size:22px;
  font-weight:600;
}
.form p{
  margin:0 0 18px 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}

.input-group{
  display:flex;
  align-items:center;
  gap:12px;
  padding:14px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 24px rgba(0,0,0,.35);
  transition: transform var(--speed) ease, background var(--speed) ease, box-shadow var(--speed) ease;
  margin-bottom:12px;
}
.input-group i{
  width:18px;
  color:rgba(199,166,255,.9);
  opacity:.95;
}
.input-group input{
  flex:1;
  outline:none;
  border:none;
  background:transparent;
  color:var(--text);
  font-size:14px;
  padding:2px 0;
  font-family:"Nunito","Comfortaa","Arial Rounded MT Bold","Trebuchet MS",sans-serif;
}
.input-group input::placeholder{color:rgba(242,236,255,.45)}
.input-group:focus-within{
  transform: translate3d(0,-1px,0);
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 18px 30px rgba(0,0,0,.45);
}

.options{
  margin:10px 0 18px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  flex-wrap:wrap;
}
.remember{
  display:flex; align-items:center; gap:10px;
  color:var(--muted);
  font-size:13px;
}
.remember input{accent-color: var(--accent)}
a{
  color:rgba(199,166,255,.92);
  text-decoration:none;
  transition: opacity var(--speed) ease, transform var(--speed) ease;
}
a:hover{opacity:.92; transform:translate3d(0,-1px,0)}
a:active{transform:translate3d(0,0,0); opacity:.85}

.submit-btn, .btn, button{
  appearance:none;
  border:none;
  outline:none;
  border-radius:18px;
  padding:14px 16px;
  font-weight:450;
  font-size:14px;
  letter-spacing:.2px;
  cursor:pointer;
  background: rgba(155,92,255,.9);
  color:#0b0016;
  box-shadow: 0 18px 34px rgba(0,0,0,.55);
  transition: transform var(--speed) ease, opacity var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
  width:100%;
  font-family:"Nunito","Comfortaa","Arial Rounded MT Bold","Trebuchet MS",sans-serif;
}
.submit-btn:hover, .btn:hover, button:hover{
  transform: translate3d(0,-1px,0);
  background: rgba(155,92,255,.98);
  box-shadow: 0 22px 46px rgba(0,0,0,.62);
}
.submit-btn:active, .btn:active, button:active{
  transform: translate3d(0,0,0) scale(.99);
  opacity:.95;
}

/* secondary small buttons if present */
.btn-secondary{
  background: rgba(255,255,255,.08);
  color: var(--text);
}
.btn-secondary:hover{background:rgba(255,255,255,.10)}

.switch-form{
  margin-top:16px;
  color:var(--muted);
  font-size:13px;
  text-align:center;
}
.switch-form a{font-weight:800}

/* social icons */
.social-login{margin-top:18px}
.social-title{color:var(--muted2); font-size:13px; text-align:center; margin-bottom:10px}
.social-icons{display:flex; justify-content:center; gap:12px; flex-wrap:wrap}
.social-icon{
  width:46px;height:46px;
  display:grid; place-items:center;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  box-shadow: 0 14px 28px rgba(0,0,0,.45);
  transition: transform var(--speed) ease, background var(--speed) ease, box-shadow var(--speed) ease;
  cursor:pointer;
}
.social-icon:hover{transform:translate3d(0,-2px,0); background:rgba(255,255,255,.08); box-shadow:0 18px 32px rgba(0,0,0,.55)}
.social-icon i{color:var(--text); opacity:.9}

/* message box common */
#login-msg, #signup-msg, #verify-msg, #reset-msg, #forgot-msg, .msg, .message{
  margin-top:12px;
  padding:12px 12px;
  border-radius:16px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size:13px;
  line-height:1.45;
  box-shadow: var(--shadow2);
}

/* Page enter animations */
body{opacity:0; transform:translate3d(0,8px,0); transition:opacity .55s ease, transform .55s ease}
body.is-ready{opacity:1; transform:translate3d(0,0,0)}
.side-panel, .forms{animation: cardIn .65s ease both}
.side-panel{animation-delay:.05s}
.forms{animation-delay:.12s}
@keyframes cardIn{
  from{opacity:0; transform:translate3d(0,12px,0) scale(.985)}
  to{opacity:1; transform:translate3d(0,0,0) scale(1)}
}

/* Small helper panel used on some mobile layouts */
.mobile-panel-content{
  display:none;
  margin-top:18px;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
@media (max-width:900px){
  .mobile-panel-content{display:block}
}

/* Account page / generic containers (best-effort styling) */
.container, .account-container, .content, .card, .panel{
  border-radius: var(--radius);
  background: var(--panel);
  backdrop-filter: blur(var(--blur)) saturate(120%);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(120%);
  box-shadow: var(--shadow);
}
.container{width:min(1100px, calc(100% - 28px)); margin:22px auto; padding:18px}
@media (max-width:900px){
  .container{padding:14px}
}

/* Tables / rows if present */
table{width:100%; border-collapse:collapse}
th,td{padding:10px 10px; text-align:left; color:var(--muted)}
th{color:var(--text); font-weight:800}

/* utility */
.hidden{display:none !important}
header, footer, .site-header, .site-footer, #header, #footer{display:none !important}

/* reduced motion */
@media (prefers-reduced-motion: reduce){
  *{animation:none !important; transition:none !important}
  body{opacity:1 !important; transform:none !important}
  .background-elements::after,
  .purple-orb{opacity:.45}
}

/* Account / misc pages */
.wrap{
  width:min(1100px, calc(100% - 28px));
  margin: clamp(18px, 4vh, 40px) auto;
}
.card{
  padding:18px;
}
.top{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
}
.row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  padding:12px 12px;
  border-radius:18px;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 12px 24px rgba(0,0,0,.28);
  margin:10px 0;
}
.row small{color:var(--muted2)}
.row b{color:var(--text)}
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-decoration:none;
}
.btn.btn-ghost{
  background: rgba(255,255,255,.08);
  color: var(--text);
}
.btn.btn-ghost:hover{background: rgba(255,255,255,.10)}
@media (max-width:700px){
  .top{flex-direction:column}
  .row{flex-direction:column; align-items:flex-start}
  .btn, button{width:100%}
}


@media (min-width: 901px){
  .logo{gap:0}
  .logo::before{display:none}
}


/* ------------------------------------------------------------
   Auth pages helpers (verify/reset) — keep liquid glass style
------------------------------------------------------------ */
.form{
  padding:22px;
  display:flex;
  flex-direction:column;
  gap:14px;
}
@media (max-width: 520px){
  .form{padding:18px; gap:12px}
}

.form-title{
  margin:0;
  font-size:28px;
  line-height:1.1;
  letter-spacing:-.02em;
}
.form-subtitle{
  margin:0 0 6px 0;
  color:var(--muted);
  font-size:14px;
  line-height:1.5;
}

.status-card{
  background: var(--panel2);
  border-radius: 18px;
  padding:14px 14px;
  box-shadow: var(--shadow2);
}
.status-title{
  display:flex;
  align-items:center;
  gap:10px;
  font-weight:600;
  letter-spacing:.2px;
}
.status-text{
  margin-top:8px;
  color: var(--muted);
  line-height:1.55;
}

.field-wrap{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.field-label{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:500;
  font-size:13px;
}
.field-label i{color:rgba(155,92,255,.95)}
.field{
  width:100%;
  padding:14px 14px;
  border-radius:18px;
  background: rgba(255,255,255,.06);
  color:var(--text);
  border:none;
  outline:none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
  transition: box-shadow var(--speed) ease, transform var(--speed) ease, background var(--speed) ease;
  font-family:"Nunito","Comfortaa","Arial Rounded MT Bold","Trebuchet MS",sans-serif;
}
.field::placeholder{color:rgba(242,236,255,.45)}
.field:focus{
  box-shadow: inset 0 0 0 1px rgba(155,92,255,.22), 0 14px 40px rgba(0,0,0,.5);
  background: rgba(255,255,255,.075);
}

.row-links{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-top:10px;
  flex-wrap:wrap;
}
.text-link{
  color:rgba(199,166,255,.95);
  text-decoration:none;
  font-weight:500;
}
.text-link:hover{opacity:.9; text-decoration:underline}

.code-wrap{
  padding: clamp(14px, 4vw, 18px);
}

.code-label{
  display:flex;
  align-items:center;
  gap:10px;
  color:var(--muted);
  font-weight:600;
  font-size:13px;
}
.code-label i{color:rgba(155,92,255,.95)}

.code-inputs{
  display:flex;
  justify-content:center;
  align-items:center;
  gap: clamp(8px, 2.2vw, 12px);
  margin-top: 14px;
  flex-wrap: nowrap; /* keep 6 boxes always in one row */
  width: 100%;
  padding: 2px 2px;
}

.code-box{
  box-sizing:border-box;
  flex: 0 0 auto;
  width: clamp(34px, 8.6vw, 50px);
  height: clamp(44px, 11vw, 56px);
  border-radius: clamp(14px, 3vw, 18px);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border:none;
  outline:none;
  text-align:center;
  font-weight:600;
  font-size: clamp(16px, 4.0vw, 20px);
  font-family:"Nunito","Comfortaa","Arial Rounded MT Bold","Trebuchet MS",sans-serif;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.085),
    0 10px 24px rgba(0,0,0,.22);
  transition: transform var(--speed) ease, box-shadow var(--speed) ease, background var(--speed) ease;
}

.code-box:focus{
  transform: translate3d(0,-2px,0);
  background: rgba(155,92,255,.12);
  box-shadow:
    inset 0 0 0 1px rgba(155,92,255,.55),
    0 16px 30px rgba(0,0,0,.30);
}

@media (max-width: 420px){
  .code-box{width:42px; height:48px; border-radius:15px}
}

.helper-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  margin-top:16px;
}

.link-btn{
  appearance:none;
  border:none;
  outline:none;
  background: rgba(255,255,255,.05);
  color: rgba(199,166,255,.95);
  padding:12px 14px;
  border-radius:18px;
  font-weight:200;
  cursor:pointer;
  font-family:"Nunito","Comfortaa","Arial Rounded MT Bold","Trebuchet MS",sans-serif;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.05);
  transition: transform var(--speed) ease, opacity var(--speed) ease, background var(--speed) ease, box-shadow var(--speed) ease;
}
.link-btn:hover{background: rgba(255,255,255,.07)}
.link-btn:active{transform: translateY(1px) scale(.99)}
.inline-note{
  color: rgba(242,236,255,.62);
  font-weight:500;
  font-size:13px;
}

/* Reset/standalone card layout */
.auth-card{
  width: min(560px, calc(100% - 28px));
  margin: clamp(18px, 6vh, 64px) auto;
  padding:22px;
}
@media (max-width: 520px){
  .auth-card{padding:18px}
}
.auth-card .title{
  font-size:28px;
  font-weight:600;
  letter-spacing:-.02em;
}
.auth-card .subtitle{
  margin-top:8px;
  color: var(--muted);
  line-height:1.55;
}

/* Space buttons on tight pages */
.auth-card .submit-btn{margin-top:10px}
.submit-btn + .helper-row{margin-top:14px}

/* Missing auth helper classes used by templates */
.panel-title{
  margin:4px 0 0;
  font-size:38px;
  line-height:1.1;
  font-weight:600;
  letter-spacing:-.02em;
}
.panel-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  width:fit-content;
  margin-top:2px;
  font-weight:500;
}
.panel-text{
  margin:0;
  color:var(--muted);
  line-height:1.55;
  font-size:14px;
}
.features{
  margin:0;
  padding:0;
  list-style:none;
  display:flex;
  flex-direction:column;
  gap:10px;
}
.features li{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--muted);
  line-height:1.45;
  font-size:13px;
}
.features li i{
  color:rgba(155,92,255,.95);
  margin-top:2px;
}
.features-placeholder{min-height:12px}
.mobile-panel-title{
  margin:0;
  font-size:24px;
  line-height:1.12;
  font-weight:600;
}
.mobile-panel-link{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
}
.panel-link i.fa-arrow-right,
.mobile-panel-link i.fa-arrow-right,
a i.fa-arrow-right{
  display:inline-block;
  transition: transform .32s cubic-bezier(.2,.7,0,1), opacity .24s ease;
}
.panel-link:hover i.fa-arrow-right,
.mobile-panel-link:hover i.fa-arrow-right,
a:hover i.fa-arrow-right{
  transform:translate3d(4px,0,0);
}
.panel-link:active i.fa-arrow-right,
.mobile-panel-link:active i.fa-arrow-right,
a:active i.fa-arrow-right{
  transform:translate3d(2px,0,0);
}
.note{
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
}
.email-fix-row{
  margin-top:12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  color:var(--muted2);
  font-size:13px;
}
.toast{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translate3d(-50%, 12px, 0);
  opacity:0;
  pointer-events:none;
  background:rgba(9,0,20,.88);
  color:var(--text);
  padding:10px 14px;
  border-radius:14px;
  box-shadow:var(--shadow2);
  transition:transform .25s ease, opacity .25s ease;
  z-index:1000;
}
.toast.show{
  opacity:1;
  transform:translate3d(-50%, 0, 0);
}

.cf-turnstile{
  margin:6px 0 14px;
}

#register-msg{
  margin-top:12px;
  padding:10px 12px;
  border-radius:12px;
  font-size:14px;
  line-height:1.4;
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,.07);
  color:var(--text);
  box-shadow:var(--shadow2);
}
#register-msg.error{
  border-color:rgba(255, 80, 80, 0.35);
  background:rgba(255, 80, 80, 0.10);
}
#register-msg.info{
  border-color:rgba(180, 120, 255, 0.35);
  background:rgba(180, 120, 255, 0.10);
}

.field-wrap.error .field,
.code-wrap.error{
  box-shadow: inset 0 0 0 1px rgba(255,90,90,.7), 0 12px 28px rgba(0,0,0,.36);
  background: rgba(255,80,80,.10);
}
.shake{
  animation: shakeX .36s ease;
}
@keyframes shakeX{
  0%, 100%{transform:translateX(0)}
  20%{transform:translateX(-6px)}
  40%{transform:translateX(6px)}
  60%{transform:translateX(-4px)}
  80%{transform:translateX(4px)}
}

#forgotForm, #verifyForm, #resetForm, #welcomeForm{
  display:flex;
  flex-direction:column;
  gap:12px;
}


/* v5 tweaks: verify/reset spacing + desktop one-shot animations */
@media (max-width: 360px){
  .auth-card{padding: 18px 14px;}
  .code-wrap{padding: 14px 12px;}
  .submit-btn, .btn, button{padding: 13px 14px;}
}

@media (max-width:900px){
  .purple-orb{
    opacity:.62 !important;
    filter: blur(46px) saturate(92%) brightness(.46) !important;
  }
  html, body{
    height:100dvh;
    overflow-x:hidden;
  }
  body{
    display:block;
    min-height:100dvh;
    padding-top:max(8px, env(safe-area-inset-top));
  }
  .form-container{
    width:calc(100% - 10px);
    min-height:calc(100dvh - max(8px, env(safe-area-inset-top)));
    margin:0 auto;
    padding:10px 0 8px;
    align-items:center;
  }
  .forms{
    width:100%;
    min-height:auto;
    padding:14px 10px;
  }
  .form{
    padding:12px 10px;
  }
  .auth-card{
    width:calc(100% - 10px);
    margin:0 auto;
    padding:16px 12px;
  }
}

@media (max-width:520px){
  .form-container{width:calc(100% - 6px)}
  .forms{padding:10px 8px}
  .form{padding:8px 6px}
  .code-wrap{padding:10px 8px}
  .helper-row{gap:8px}
}
