/* =========================================================
   WOHNENIO AUTH PAGES
   Professional Modern Auth UI
   ONLY for:
   - login
   - signup
   - verify
   - forgot password
   - reset password
========================================================= */

/* =========================================================
   AUTH PAGE LAYOUT
========================================================= */

body{

  position:relative;

  overflow-x:hidden;
}

/* background glow */

body::before{

  content:"";

  position:fixed;

  inset:0;

  background:
    radial-gradient(
      circle at top left,
      rgba(37,99,235,0.16),
      transparent 28%
    ),

    radial-gradient(
      circle at top right,
      rgba(124,58,237,0.14),
      transparent 24%
    ),

    radial-gradient(
      circle at bottom,
      rgba(59,130,246,0.08),
      transparent 30%
    );

  pointer-events:none;

  z-index:-1;
}

.auth-container{

  min-height:100vh;

  display:flex;
  align-items:center;
  justify-content:center;

  padding:40px 20px;

  position:relative;
}

/* =========================================================
   AUTH CARD
========================================================= */

.auth-card{

  width:100%;
  max-width:480px;

  position:relative;

  padding:42px;

  border-radius:32px;

  background:
    rgba(255,255,255,0.78);

  backdrop-filter:blur(24px);
  -webkit-backdrop-filter:blur(24px);

  border:
    1px solid rgba(255,255,255,0.85);

  box-shadow:
    0 30px 80px rgba(15,23,42,0.14);

  overflow:hidden;
}

/* top glow line */

.auth-card::before{

  content:"";

  position:absolute;

  top:0;
  left:0;
  right:0;

  height:5px;

  background:
    linear-gradient(
      90deg,
      #2563eb,
      #7c3aed
    );
}

/* =========================================================
   BRAND
========================================================= */

.auth-brand{

  display:flex;
  flex-direction:column;
  align-items:center;

  margin-bottom:28px;
}

.auth-logo{

  width:84px;
  height:84px;

  object-fit:contain;

  margin-bottom:18px;

  filter:
    drop-shadow(0 10px 24px rgba(37,99,235,0.18));
}

.auth-brand-name{

  font-size:30px;
  font-weight:900;

  letter-spacing:-1px;

  color:#0f172a;

  margin-bottom:8px;
}

.auth-brand-text{

  text-align:center;

  color:#64748b;

  font-size:15px;

  max-width:320px;

  line-height:1.6;
}

/* =========================================================
   HEADINGS
========================================================= */

.auth-card h2{

  text-align:center;

  font-size:32px;
  font-weight:800;

  letter-spacing:-1px;

  color:#0f172a;

  margin-bottom:10px;
}

.subtitle{

  text-align:center;

  color:#64748b;

  font-size:15px;

  margin-bottom:30px;

  line-height:1.6;
}

/* =========================================================
   FORM
========================================================= */

.auth-card form{

  display:flex;
  flex-direction:column;

  gap:16px;
}

/* =========================================================
   INPUTS
========================================================= */

.auth-card input{

  width:100%;

  height:58px;

  padding:0 18px;

  border-radius:18px;

  border:
    1.5px solid #dbe4f0;

  background:
    rgba(255,255,255,0.92);

  color:#0f172a;

  font-size:15px;
  font-weight:500;

  transition:
    border-color .22s ease,
    box-shadow .22s ease,
    transform .22s ease,
    background .22s ease;
}

.auth-card input::placeholder{

  color:#94a3b8;

  font-weight:400;
}

.auth-card input:hover{

  border-color:#cbd5e1;
}

.auth-card input:focus{

  outline:none;

  background:white;

  border-color:#2563eb;

  box-shadow:
    0 0 0 5px rgba(37,99,235,0.12);

  transform:translateY(-1px);
}

/* =========================================================
   BUTTONS
========================================================= */

.auth-card button{

  width:100%;

  height:58px;

  border:none;

  border-radius:18px;

  background:
    linear-gradient(
      135deg,
      #2563eb,
      #7c3aed
    );

  color:white;

  font-size:15px;
  font-weight:800;

  letter-spacing:0.2px;

  cursor:pointer;

  transition:
    transform .22s ease,
    box-shadow .22s ease,
    opacity .22s ease;

  box-shadow:
    0 18px 40px rgba(37,99,235,0.24);
}

.auth-card button:hover{

  transform:
    translateY(-2px)
    scale(1.01);

  box-shadow:
    0 24px 50px rgba(37,99,235,0.34);
}

.auth-card button:active{

  transform:scale(.99);
}

.auth-card button:disabled{

  opacity:.7;

  cursor:not-allowed;

  transform:none;
}

/* =========================================================
   TERMS
========================================================= */

.auth-terms{

  display:flex;
  align-items:center;

  gap:10px;

  margin-top:4px;

  color:#475569;

  font-size:14px;

  line-height:1.5;

  flex-wrap:nowrap;
}

.auth-terms span{

  display:inline-flex;
  align-items:center;

  flex-wrap:wrap;

  gap:4px;
}

.auth-terms input{

  width:18px;
  height:18px;

  margin-top:3px;

  accent-color:#2563eb;

  flex-shrink:0;
}

.auth-terms a{

  color:#2563eb;

  font-weight:700;
}

.auth-terms a:hover{

  text-decoration:underline;
}

/* =========================================================
   LINKS
========================================================= */

.switch,
.forgot-password-link{

  text-align:center;

  margin-top:20px;

  color:#64748b;

  font-size:14px;
}

.switch a,
.forgot-password-link a{

  color:#2563eb;

  font-weight:700;

  transition:opacity .2s ease;
}

.switch a:hover,
.forgot-password-link a:hover{

  opacity:.8;
}

/* =========================================================
   MESSAGE
========================================================= */

#message,
#resendMessage{

  text-align:center;

  font-size:14px;

  line-height:1.6;

  margin-top:6px;
}

/* =========================================================
   VERIFICATION BOX
========================================================= */

#verificationBox{

  display:none;

  margin-top:14px;
}

/* =========================================================
   DIVIDER
========================================================= */

.auth-divider{

  position:relative;

  text-align:center;

  margin:28px 0 10px;
}

.auth-divider::before{

  content:"";

  position:absolute;

  top:50%;
  left:0;
  right:0;

  height:1px;

  background:#e2e8f0;
}

.auth-divider span{

  position:relative;

  display:inline-block;

  padding:0 14px;

  background:white;

  color:#94a3b8;

  font-size:13px;
}

/* =========================================================
   MOBILE
========================================================= */

@media(max-width:640px){

  .auth-container{

    padding:20px 14px;
  }

  .auth-card{

    padding:28px 22px;

    border-radius:26px;
  }

  .auth-card h2{

    font-size:28px;
  }

  .auth-brand-name{

    font-size:26px;
  }

  .auth-logo{

    width:74px;
    height:74px;
  }

  .auth-card input,
  .auth-card button{

    height:54px;

    border-radius:16px;
  }
}

/* =========================================================
   CHECKBOX FIX
========================================================= */

.auth-card input[type="checkbox"]{

  width:18px;
  height:18px;

  min-width:18px;

  padding:0;

  border-radius:4px;

  flex-shrink:0;

  cursor:pointer;

  box-shadow:none;

  transform:none;
}

/* =========================================================
   AUTH BRAND LINK
========================================================= */

.auth-brand-link{

  display:flex;
  flex-direction:column;
  align-items:center;

  text-decoration:none;

  transition:
    transform .22s ease,
    opacity .22s ease;
}

.auth-brand-link:hover{

  transform:translateY(-2px);

  opacity:.96;
}

.auth-brand-link:active{

  transform:scale(.98);
}