/* =========================================================
   Auth pages — shared design tokens
   ========================================================= */
:root {
  --font-main:    'Manrope', system-ui, sans-serif;
  --blue:         #1f78c8;
  --blue-dark:    #1560a8;
  --text:         #1a2530;
  --text-muted:   rgba(26,37,48,.55);
  --border:       rgba(20,40,60,.14);
  --input-bg:     #f7f9fb;
  --radius-card:  16px;
  --radius-input: 12px;
  --radius-btn:   12px;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
  background: #061d2e;
}
/* =========================================================
   LOGIN PAGE
   ========================================================= */
.auth-page--login {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(160deg, rgba(6,36,55,.70), rgba(12,58,87,.45)),
    url('/images/login-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  font-family: var(--font-main);
  color: var(--text);
  overflow-x: hidden;
  display: block;
  padding: 24px 24px 60px;
  box-sizing: border-box;
}
.su-subtitle {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.78);
  text-align: center;
}
.su-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}
.su-forgot {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--blue, #1f78c8);
  text-decoration: none;
}
.su-forgot:hover { text-decoration: underline; }
.su-remember {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(26,37,48,.70);
  cursor: pointer;
  user-select: none;
}
.su-remember input {
  width: auto;
  margin: 0;
  accent-color: var(--blue, #1f78c8);
  cursor: pointer;
}
@media (max-width: 480px) {
  .auth-page--login { padding: 20px 16px 48px; }
  .su-meta { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 380px) {
  .auth-page--login { padding: 16px 14px 40px; }
}
/* =========================================================
   SIGNUP PAGE
   ========================================================= */
.auth-page--signup {
  min-height: 100vh;
  min-height: 100dvh;
  background:
    linear-gradient(160deg, rgba(6,36,55,.85), rgba(12,58,87,.60)),
    url('/images/login-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  font-family: var(--font-main);
  color: var(--text);
  overflow-x: hidden;
  display: block;
  padding: 24px 24px 60px;
  box-sizing: border-box;
}
.su-header {
  padding: 0 0 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.su-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.su-logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  object-fit: contain;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
  flex-shrink: 0;
}
.su-brand-name {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.su-title-wrap { text-align: center; }
.su-title {
  margin: 0;
  font-size: 40px;
  font-weight: 300;
  color: rgba(255,255,255,.95);
  letter-spacing: -0.02em;
  text-shadow: 0 8px 24px rgba(0,0,0,.25);
}
.su-card {
  width: 100%;
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 24px 32px;
  box-shadow: 0 20px 60px rgba(0,0,0,.28);
}
.su-field { margin-bottom: 14px; }
.su-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1a2530;
  margin-bottom: 6px;
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}
.su-input {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 13px;
  border: 1.5px solid rgba(20,40,60,.18);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 400;
  color: #1a2530;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}
.su-input:focus {
  border-color: var(--blue, #1f78c8);
  box-shadow: 0 0 0 3px rgba(31,120,200,.12);
}
.su-input::placeholder {
  color: rgba(26,37,48,.32);
  font-weight: 400;
}
.su-select {
  cursor: pointer;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: #fff;
}
.su-select:focus {
  border-color: var(--blue, #1f78c8);
  box-shadow: 0 0 0 3px rgba(31,120,200,.12);
}
.su-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 14px;
}
.su-hint {
  font-size: 11.5px;
  color: rgba(26,37,48,.45);
  margin-top: 5px;
  line-height: 1.4;
}
.su-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  margin: 10px 0;
  font-size: 13px;
  font-weight: 500;
  color: rgba(26,37,48,.80);
  line-height: 1.45;
}
.su-check input {
  width: auto;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--blue, #1f78c8);
}
.su-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  border-radius: 10px;
  padding: 15px 16px;
  text-align: center;
}
.su-signin {
  margin-top: 16px;
  text-align: center;
  font-size: 13.5px;
  font-weight: 600;
  color: rgba(26,37,48,.60);
}
.su-signin a {
  color: var(--blue, #1f78c8);
  font-weight: 700;
  text-decoration: underline;
}
.su-benefits {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(20,40,60,.08);
}
.su-benefit {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  font-size: 12px;
  font-weight: 600;
  color: rgba(26,37,48,.65);
  line-height: 1.4;
}
.su-benefit-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(31,120,200,.12);
  color: var(--blue, #1f78c8);
  font-size: 10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  margin-top: 1px;
}
@media (max-width: 480px) {
  .auth-page--signup { padding: 20px 16px 48px; }
  .su-grid2 { grid-template-columns: 1fr; gap: 0; margin-bottom: 0; }
  .su-grid2 .su-field { margin-bottom: 14px; }
  .su-title { font-size: 32px; }
  .su-card  { padding: 24px 18px 28px; max-width: 100%; }
  .su-benefits { grid-template-columns: 1fr; }
}
@media (max-width: 380px) {
  .auth-page--signup { padding: 16px 14px 40px; }
  .su-title  { font-size: 28px; }
  .su-card   { padding: 20px 14px 24px; }
}
/* =========================================================
   SIGNUP PAGE — page wrapper
   ========================================================= */
.auth-page {
  margin: 0;
  font-family: var(--font-main);
  color: var(--text);
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  background:
    linear-gradient(160deg, rgba(6,36,55,.85), rgba(12,58,87,.60)),
    url('/images/login-bg.jpeg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: scroll;
}
.auth-page::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1200px 700px at 70% 20%, rgba(255,255,255,.08), transparent 55%),
    linear-gradient(0deg, rgba(0,0,0,.15), rgba(0,0,0,.15));
  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;
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 16px 40px;
  box-sizing: border-box;
}
.auth-wrap--scroll { height: auto; overflow: visible; }
.auth-shell {
  width: 100%;
  max-width: 560px;
  position: relative;
  box-sizing: border-box;
}
.auth-shell--wide  { max-width: 960px; }
.auth-shell--fixed { padding-top: 72px; }
.auth-signup-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 50%;
  background: #ffffff;
  padding: 5px;
  box-shadow: 0 3px 10px rgba(0,0,0,.20);
  flex-shrink: 0;
}
.auth-signup-logo--side {
  width: 38px;
  height: 38px;
  padding: 4px;
  background: rgba(255,255,255,.92);
}
.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  max-width: 100%;
}
.auth-brand--floating {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
}
.auth-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: .02em;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 8px 20px rgba(31,120,200,.30);
  flex: 0 0 auto;
}
.auth-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.auth-brand-name {
  font-weight: 900;
  color: #ffffff;
  font-size: 15px;
  text-shadow: 0 6px 16px rgba(0,0,0,.30);
}
.auth-brand-tagline {
  font-size: 11.5px;
  color: rgba(255,255,255,.78);
  margin-top: 2px;
  text-shadow: 0 6px 16px rgba(0,0,0,.30);
}
.auth-pagehead { text-align: center; margin: 0 0 20px; }
.auth-pagetitle {
  margin: 0;
  font-size: 48px;
  font-weight: 300;
  color: rgba(255,255,255,.94);
  letter-spacing: -0.02em;
  text-shadow: 0 12px 32px rgba(0,0,0,.28);
}
.auth-dots { display: flex; justify-content: center; gap: 6px; margin: 10px 0 0; }
.auth-dots span {
  width: 8px; height: 8px; border-radius: 3px;
  background: var(--blue);
  opacity: .25;
}
.auth-dots span.on  { opacity: 1; }
.auth-dots--big span { width: 10px; height: 10px; }
.auth-two-col {
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 24px;
  align-items: start;
}
.auth-grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.auth-card--signup {
  width: 100%;
  box-sizing: border-box;
  border-radius: 18px;
  padding: 28px 26px 24px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(255,255,255,.60);
  box-shadow: 0 16px 48px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  max-height: none;
  overflow: visible;
}
.auth-side { padding: 12px 8px; color: rgba(255,255,255,.95); }
.auth-side-head { display: flex; align-items: center; margin-bottom: 20px; }
.auth-brand--side { position: static; transform: none; max-width: 100%; }
.auth-side .auth-mark {
  background: rgba(255,255,255,.16);
  border: 1px solid rgba(255,255,255,.20);
}
.auth-side .auth-brand-name    { color: #fff; }
.auth-side .auth-brand-tagline { color: rgba(255,255,255,.80); }
.auth-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.auth-checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.4;
  font-weight: 700;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.auth-checkicon {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(31,120,200,.28);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  font-size: 13px;
  flex: 0 0 auto;
  margin-top: 1px;
}
.auth-input--error {
  border-color: #c02c2c !important;
  box-shadow: 0 0 0 4px rgba(192,44,44,.10) !important;
}
.auth-field-error {
  font-size: 12px;
  font-weight: 700;
  color: #c02c2c;
  margin-top: 6px;
  line-height: 1.4;
}
@media (max-width: 640px) {}
@media (max-width: 380px) {
  .auth-page--login { padding: 20px 12px 24px; }
  .auth-logo-img    { width: 60px; height: 60px; }
}
@media (max-width: 860px) {
  .auth-two-col { grid-template-columns: 1fr; gap: 20px; }
  .auth-side { padding: 0 4px 4px; }
  .auth-side-head { margin-bottom: 14px; }
  .auth-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
}
@media (max-width: 640px) {
  .auth-wrap { padding: 14px 12px 36px; }
  .auth-shell--fixed { padding-top: 56px; }
  .auth-shell--wide  { max-width: 100%; }
  .auth-brand--floating { left: 0; }
  .auth-brand-name    { font-size: 14px; }
  .auth-brand-tagline { display: none; }
  .auth-pagetitle { font-size: 30px; }
  .auth-page:not(.auth-page--login) .auth-row input,
  .auth-page:not(.auth-page--login) .auth-select,
  .auth-page:not(.auth-page--login) .auth-row select {
    padding: 11px 12px;
    font-size: 16px;
  }
  .auth-card--signup { padding: 18px 14px 18px; border-radius: 14px; }
  .auth-row { margin-bottom: 12px; }
  .auth-grid2 { grid-template-columns: 1fr; gap: 0; }
  .auth-checklist { grid-template-columns: 1fr; }
}
@media (max-width: 400px) {
  .auth-wrap { padding: 12px 10px 32px; }
  .auth-shell--fixed { padding-top: 52px; }
  .auth-card--signup { padding: 16px 12px 16px; }
  .auth-pagetitle    { font-size: 26px; }
  .auth-row { margin-bottom: 10px; }
}
/* =========================================================
   CUSTOM INLINE-EXPAND SELECT
   ========================================================= */
.cs-wrap {
  display: flex;
  flex-direction: column;
  border: 1.5px solid rgba(20,40,60,.18);
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.cs-wrap:focus-within {
  border-color: var(--blue, #1f78c8);
  box-shadow: 0 0 0 3px rgba(31,120,200,.12);
}
.cs-wrap .cs-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 11px 13px;
  background: transparent;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 400;
  color: #1a2530;
  text-align: left;
  -webkit-tap-highlight-color: transparent;
  outline: none;
}
.cs-wrap .cs-trigger .cs-label {
  flex: 1;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.cs-wrap .cs-trigger[data-placeholder] .cs-label,
.cs-wrap .cs-trigger .cs-label.is-placeholder {
  color: rgba(26,37,48,.32);
  font-weight: 400;
}
.cs-chevron {
  flex-shrink: 0;
  color: rgba(26,37,48,.45);
  transition: transform 0.22s ease;
  margin-left: 8px;
}
.cs-wrap.cs-open .cs-chevron {
  transform: rotate(180deg);
}

/* List */
.cs-list {
  max-height: 0;
  overflow: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transition: max-height 0.25s ease;
  border-top: 0 solid rgba(20,40,60,.10);
  background: #fff;
}
.cs-wrap.cs-open .cs-list {
  max-height: 210px;   /* default — no search */
  border-top-width: 1px;
}
/* When searchable, give more room for search input + options */
.cs-wrap[data-searchable="true"].cs-open .cs-list {
  max-height: 280px;
}

/* Search input inside list */
.cs-search {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 10px 13px;
  border: none;
  border-bottom: 1px solid rgba(20,40,60,.10);
  font-size: 16px;           /* 16px — prevents iOS zoom */
  font-family: var(--font-main);
  font-weight: 400;
  color: #1a2530;
  background: #f7f9fb;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.cs-search::placeholder {
  color: rgba(26,37,48,.32);
}
.cs-search:focus {
  background: #fff;
  border-bottom-color: var(--blue, #1f78c8);
}

/* Options */
.cs-opt {
  padding: 12px 13px;
  font-size: 16px;
  font-family: var(--font-main);
  font-weight: 400;
  color: #1a2530;
  cursor: pointer;
  border-bottom: 1px solid rgba(20,40,60,.07);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  outline: none;
}
.cs-opt:last-child { border-bottom: none; }
.cs-opt:hover,
.cs-opt:focus { background: rgba(31,120,200,.06); }
.cs-opt[aria-selected="true"] {
  font-weight: 600;
  color: var(--blue, #1f78c8);
  background: rgba(31,120,200,.05);
}

/* =========================================================
   RESET PASSWORD PAGE
   ========================================================= */
.auth-shell--narrow {
  max-width: 520px;
}

.auth-page--reset .auth-wrap {
  align-items: center;
  padding: 28px 16px 40px;
}

.auth-pagehead--compact {
  text-align: center;
  margin: 0 0 18px;
}

.auth-pagetitle--small {
  font-size: 42px;
  margin-bottom: 8px;
}

.auth-pagesubtitle {
  margin: 0;
  font-size: 15px;
  color: rgba(255,255,255,.82);
  text-shadow: 0 6px 18px rgba(0,0,0,.28);
}

.auth-card--reset {
  width: 100%;
  background: rgba(255,255,255,.97);
  border: 1px solid rgba(255,255,255,.60);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(0,0,0,.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 28px 24px 24px;
}

.auth-form--reset {
  width: 100%;
}

.auth-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #1a2530;
  margin-bottom: 7px;
}

.auth-input {
  width: 100%;
  box-sizing: border-box;
  padding: 13px 14px;
  border: 1.5px solid rgba(20,40,60,.18);
  border-radius: 12px;
  font-size: 16px;
  font-family: var(--font-main);
  color: #1a2530;
  background: #fff;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color .15s, box-shadow .15s;
}

.auth-input:focus {
  border-color: var(--blue, #1f78c8);
  box-shadow: 0 0 0 3px rgba(31,120,200,.12);
}

.auth-input::placeholder {
  color: rgba(26,37,48,.34);
}

.auth-btn--full {
  width: 100%;
  display: block;
  margin-top: 8px;
  padding: 14px 16px;
  border: none;
  border-radius: 12px;
  background: var(--blue, #1f78c8);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(31,120,200,.25);
  transition: transform .15s ease, background .15s ease;
}

.auth-btn--full:hover {
  background: var(--blue-dark, #1560a8);
  transform: translateY(-1px);
}

.auth-links--center {
  text-align: center;
  margin-top: 16px;
}

.auth-links--center a {
  color: var(--blue, #1f78c8);
  font-size: 13.5px;
  font-weight: 700;
  text-decoration: none;
}

.auth-links--center a:hover {
  text-decoration: underline;
}

.auth-success,
.auth-errors {
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 13.5px;
  line-height: 1.5;
}

.auth-success {
  background: rgba(38, 135, 76, 0.10);
  border: 1px solid rgba(38, 135, 76, 0.20);
  color: #22613a;
}

.auth-errors {
  background: rgba(192, 44, 44, 0.08);
  border: 1px solid rgba(192, 44, 44, 0.18);
  color: #a12626;
}

@media (max-width: 640px) {
  .auth-page--reset .auth-wrap {
    align-items: flex-start;
    padding: 18px 12px 32px;
  }

  .auth-pagetitle--small {
    font-size: 30px;
  }

  .auth-card--reset {
    padding: 20px 16px 18px;
    border-radius: 14px;
  }
}