/* =========================================================
   Auth pages (Login/Signup)
   ========================================================= */
:root{
  --font-main: 'Manrope', system-ui, sans-serif;
}

html, body { background: transparent; }

.auth-page{
  margin:0;
  font-family: var(--font-main);
  color: var(--text, #1e2a33);
  position:relative;

  min-height: 100vh;
  height: auto;
  overflow-x: hidden;
  overflow-y: visible;

  background:
    linear-gradient(120deg, rgba(6,36,55,.70), rgba(12,58,87,.45)),
    url("/images/login-bg.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.auth-page.auth-page--scroll{
  height: auto;
  overflow: visible;
  overscroll-behavior: auto;
}

.auth-page::after{
  content:"";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 70% 20%, rgba(255,255,255,.10), transparent 55%),
    radial-gradient(900px 700px at 20% 80%, rgba(0,0,0,.25), transparent 60%),
    linear-gradient(0deg, rgba(0,0,0,.18), rgba(0,0,0,.18));
  pointer-events: none;
  z-index: 0;
}

.auth-wrap,
.auth-shell,
.auth-card,
.auth-side,
.auth-brand{
  position: relative;
  z-index: 1;
}

.auth-wrap{
  min-height: 100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding: 22px 18px;
  box-sizing: border-box;
  overflow: visible;
}

.auth-wrap.auth-wrap--scroll{
  min-height: 100dvh;
  height: auto;
  overflow: visible;
  align-items: flex-start;
  padding-top: 28px;
  padding-bottom: 28px;
}

.auth-shell{
  width: 100%;
  max-width: 560px;
  position:relative;
  box-sizing: border-box;
}

.auth-shell--wide{ max-width: 980px; }
.auth-shell--fixed{ padding-top: 64px; }

.auth-card{
  width:100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 20px;
  padding: 28px 28px 26px;
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(255,255,255,.55);
  box-shadow: 0 22px 60px rgba(0,0,0,.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: none;
  overflow: visible;
}

.auth-card--locked{
  max-height: calc(100vh - 44px);
  overflow: auto;
}

.auth-card--signup{
  max-height: none;
  overflow: visible;
  position: relative;
  z-index: 1;
}

.auth-brand{
  display:flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  max-width: 100%;
}

.auth-brand--floating{
  position:absolute;
  top: 54px;
  left: 18px;
  transform: translateY(-100%);
  z-index:10;
  max-width: calc(100% - 36px);
}

.auth-mark{
  width:44px;
  height:44px;
  border-radius: 14px;
  display:grid;
  place-items:center;
  font-weight: 900;
  letter-spacing:.02em;
  color:#fff;
  background: var(--blue, #1f78c8);
  box-shadow: 0 12px 22px rgba(31,120,200,.25);
  flex: 0 0 auto;
}

.auth-brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.auth-brand-name{
  font-weight: 900;
  color:#ffffff;
  font-size: 15px;
  text-shadow: 0 10px 22px rgba(0,0,0,.25);
}
.auth-brand-tagline{
  font-size: 12px;
  color: rgba(255,255,255,.80);
  margin-top: 3px;
  text-shadow: 0 10px 22px rgba(0,0,0,.25);
}

.auth-pagehead{ text-align:center; margin: 0 0 14px; }
.auth-pagetitle{
  margin: 0;
  font-size: 56px;
  font-weight: 300;
  color: rgba(255,255,255,.92);
  letter-spacing: -0.02em;
  text-shadow: 0 18px 40px rgba(0,0,0,.25);
}
.auth-dots{ display:flex; justify-content:center; gap:6px; margin: 10px 0 2px; }
.auth-dots span{
  width:8px;height:8px;border-radius:3px;
  background: var(--blue, #1f78c8);
  opacity:.22;
}
.auth-dots span.on{ opacity:1; }
.auth-dots--big span{ width:10px;height:10px; }

.auth-errors{
  background:#fff1f1;
  border:1px solid #ffb5b5;
  color:#8a1f1f;
  padding:12px 14px;
  border-radius:12px;
  margin: 12px 0 12px;
  font-weight:700;
}

.auth-form{ margin-top: 8px; }
.auth-row{ margin: 14px 0; text-align:left; }

.auth-row label{
  display:block;
  font-weight:800;
  margin:0 0 8px;
  color:#1e2a33;
  font-size:13px;
  letter-spacing:.01em;
}
.req{ color:#c02c2c; margin-left:4px; }

.auth-row input,
.auth-select{
  width:100%;
  box-sizing:border-box;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,60,.18);
  background: rgba(255,255,255,.92);
  font-size: 15px;
  outline:none;
  transition:.15s ease;
}

.auth-row input:focus,
.auth-select:focus{
  border-color: rgba(31,120,200,.55);
  box-shadow: 0 0 0 4px rgba(31,120,200,.14);
}

.auth-hint{
  font-size: 12px;
  color: rgba(30,42,51,.55);
  margin-top: 8px;
  font-weight: 700;
}

.auth-btn{
  width:100%;
  margin-top:14px;
  padding: 14px 14px;
  border:0;
  border-radius:14px;
  background: var(--blue, #1f78c8);
  color:#fff;
  font-size:16px;
  font-weight:900;
  cursor:pointer;
  box-shadow: 0 16px 30px rgba(31,120,200,.28);
  transition:.15s ease;
}
.auth-btn:hover{
  transform: translateY(-1px);
  box-shadow: 0 20px 36px rgba(31,120,200,.32);
}

.auth-links{ margin-top:14px; text-align:center; font-weight:700; color: rgba(30,42,51,.75); }
.auth-links a{ color: var(--blue, #1f78c8); text-decoration:underline; font-weight:900; }
.auth-link{ color: var(--blue, #1f78c8); text-decoration: underline; font-weight: 900; }

.auth-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  margin: 12px 0;
  color: rgba(30,42,51,.82);
  font-weight: 700;
}
.auth-check input{ width:auto; margin-top: 3px; }
.auth-check label{ font-weight: 700; font-size: 13px; line-height: 1.35; }

.auth-two-col{
  display:grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 22px;
  align-items: start;
}
.auth-grid2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-side{ padding: 18px 10px; color: rgba(255,255,255,.95); }
.auth-side-head{ display:flex; align-items:center; margin-bottom: 12px; }
.auth-brand--side{ position: static; transform: none; max-width: 100%; }
.auth-side .auth-mark{
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.18);
  box-shadow: 0 14px 26px rgba(0,0,0,.14);
}
.auth-side .auth-brand-name{ color:#fff; text-shadow: 0 14px 30px rgba(0,0,0,.18); }
.auth-side .auth-brand-tagline{ color: rgba(255,255,255,.85); text-shadow: 0 14px 30px rgba(0,0,0,.18); }

.auth-checklist{
  list-style:none;
  padding: 0;
  margin: 10px 0 0;
  display:flex;
  flex-direction:column;
  gap: 14px;
}
.auth-checklist li{
  display:flex;
  gap: 12px;
  align-items:flex-start;
  line-height: 1.35;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}
.auth-checkicon{
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display:grid;
  place-items:center;
  background: rgba(31,120,200,.22);
  border: 1px solid rgba(255,255,255,.22);
  color: #ffffff;
  flex: 0 0 auto;
  box-shadow: 0 14px 26px rgba(0,0,0,.12);
}

/* =========================================================
   WhatsApp phone (intl-tel-input)
   ========================================================= */
.iti{ width:100%; }
.iti input{ width:100%; }

.iti__country-list{
  z-index: 9999 !important;
  max-height: 320px !important;
}

.iti--separate-dial-code .iti__selected-flag{
  padding: 0 10px 0 12px;
  display:flex;
  align-items:center;
  gap: 8px;
}
.iti__selected-dial-code{
  display:inline-block !important;
  font-weight:800;
  color:#1e2a33;
  opacity:.85;
}

/* =========================================================
   Country combobox (input + anchored dropdown)
   ========================================================= */
.country-field{ position: relative; }

#country_input{
  width:100%;
  box-sizing:border-box;
  padding: 14px 12px;
  border-radius: 12px;
  border: 1px solid rgba(20,40,60,.18);
  background: rgba(255,255,255,.92);
  font-size: 15px;
  outline:none;
  transition:.15s ease;
}
#country_input:focus{
  border-color: rgba(31,120,200,.55);
  box-shadow: 0 0 0 4px rgba(31,120,200,.14);
}

.country-field.is-open #country_input{
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

.country-dropdown{
  position:absolute;
  left:0;
  right:0;
  top: calc(100% - 1px);
  background:#fff;
  border:1px solid rgba(20,40,60,.16);
  border-top:0;
  border-radius: 0 0 14px 14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  overflow:hidden;
  z-index: 9999;
}

.country-dropdown-list{
  list-style:none;
  margin:0;
  padding:6px 0;
  max-height: 320px;
  overflow:auto;
}

.country-dropdown-list li{
  padding:12px 14px;
  cursor:pointer;
  font-weight:700;
  color:#1e2a33;
}
.country-dropdown-list li:hover{
  background: rgba(31,120,200,.08);
}

/* =========================================================
   Custom select for "Tell us who you are"
   ========================================================= */
.cs-wrap{
  position:relative;
  width:100%;
}

.cs-wrap select[data-custom-select]{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0;
  pointer-events:none;
}

.cs-btn{
  width:100%;
  box-sizing:border-box;
  padding:14px 12px;
  border-radius:12px;
  border:1px solid rgba(20,40,60,.18);
  background:rgba(255,255,255,.92);
  font-size:15px;
  font-weight:700;
  outline:none;
  transition:.15s ease;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  color:#1e2a33;
  cursor:pointer;
}

.cs-btn:focus{
  border-color: rgba(31,120,200,.55);
  box-shadow: 0 0 0 4px rgba(31,120,200,.14);
}

.cs-label{
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.cs-caret{
  flex:0 0 auto;
  width:9px;
  height:9px;
  border-right:2px solid currentColor;
  border-bottom:2px solid currentColor;
  transform:rotate(45deg) translateY(-2px);
  opacity:.8;
  margin-right:2px;
}

.cs-menu{
  position:fixed;
  z-index:99999;
  background:#fff;
  border:1px solid rgba(20,40,60,.16);
  border-radius:14px;
  box-shadow: 0 22px 60px rgba(0,0,0,.18);
  overflow:hidden;
}

.cs-list{
  max-height:320px;
  overflow:auto;
  padding:6px;
}

.cs-opt{
  width:100%;
  border:0;
  background:#fff;
  text-align:left;
  padding:12px 14px;
  border-radius:10px;
  font-weight:700;
  font-size:15px;
  color:#1e2a33;
  cursor:pointer;
}

.cs-opt:hover{
  background: rgba(31,120,200,.08);
}

.cs-opt[aria-selected="true"]{
  background: rgba(31,120,200,.10);
  color:#1f78c8;
}

.cs-empty{
  padding:12px 14px;
  color: rgba(30,42,51,.55);
  font-weight:700;
}

.cs-search{
  width:100%;
  box-sizing:border-box;
  padding:12px 12px;
  border-radius:10px;
  border:1px solid rgba(20,40,60,.16);
  font-weight:700;
  outline:none;
}

.cs-search:focus{
  border-color: rgba(31,120,200,.55);
  box-shadow: 0 0 0 4px rgba(31,120,200,.14);
}

/* Responsive */
@media (max-width: 900px){
  .auth-two-col{ grid-template-columns: 1fr; }
  .auth-side{ padding: 0 6px 10px; }
}

@media (max-width: 640px){
  .auth-wrap{ padding: 18px 16px; }
  .auth-shell{ max-width: calc(100vw - 32px); }
  .auth-shell--fixed{ padding-top: 58px; }
  .auth-card{ border-radius:18px; padding: 20px 16px 18px; max-height: none; }
  .auth-brand--floating{ left: 12px; top: 50px; max-width: calc(100% - 24px); }
  .auth-pagetitle{ font-size: 36px; }
  .auth-grid2{ grid-template-columns: 1fr; gap: 0; }

  .auth-wrap.auth-wrap--scroll{ padding-bottom: 48px; }
  .auth-shell--fixed{ padding-top: 44px; }

  .auth-card{
    margin-top: 24px;
  }

  .auth-brand--floating{
    margin-bottom: 12px;
  }
}

@media (max-width: 380px){
  .auth-wrap{ padding: 16px 14px; }
  .auth-shell{ max-width: calc(100vw - 28px); }
  .auth-pagetitle{ font-size: 34px; }
}


.auth-head{
  margin-bottom: 10px;
}

.auth-title{
  margin: 0;
  font-size: 52px;
  font-weight: 800;
  color: #1e2a33;
  line-height: 1.05;
}

.auth-subtext{
  margin: 10px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(30,42,51,.70);
  font-weight: 700;
}

.auth-success{
  background:#edf9f0;
  border:1px solid #9fdfae;
  color:#176b2c;
  padding:12px 14px;
  border-radius:12px;
  margin: 12px 0 12px;
  font-weight:700;
}

.auth-meta{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-top: 10px;
  flex-wrap:wrap;
}

.auth-remember{
  display:inline-flex;
  align-items:center;
  gap:8px;
  font-weight:700;
  color: rgba(30,42,51,.82);
}

.auth-remember input{
  width:auto;
  margin:0;
}

.auth-forgot{
  color: var(--blue, #1f78c8);
  text-decoration: none;
  font-weight: 800;
}

.auth-forgot:hover{
  text-decoration: underline;
}

@media (max-width: 640px){
  .auth-title{
    font-size: 38px;
  }

  .auth-meta{
    align-items:flex-start;
    flex-direction:column;
  }
}