/* ═══════════════════════════════════════════════════════
   GEA — Members Space (login) page
═══════════════════════════════════════════════════════ */

.ms-body {
  overflow: hidden !important;
  height: 100vh !important;
  background: var(--bg0);
}

/* ─── LAYOUT ─────────────────────────────────────────── */
.ms-wrap {
  display: grid;
  grid-template-columns: 420px 1fr;
  height: 100vh;
}
@media (max-width: 860px) {
  .ms-wrap { grid-template-columns: 1fr; }
}

/* ─── LEFT PANEL ─────────────────────────────────────── */
.ms-left {
  background: linear-gradient(160deg, #071409 0%, #0e2410 55%, #162d18 100%);
  position: relative;
  overflow: hidden;
}

.ms-left::before {
  content: '';
  position: absolute; inset: -50%;
  background-image: radial-gradient(circle, rgba(22,163,74,.09) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 0%, transparent 100%);
}

.ms-left-inner {
  position: relative; z-index: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 2.5rem;
}

.ms-back {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 600;
  color: rgba(255,255,255,.4); text-decoration: none;
  transition: color .2s;
  width: fit-content;
}
.ms-back svg { width: 14px; height: 14px; stroke: currentColor; }
.ms-back:hover { color: rgba(255,255,255,.75); }

.ms-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
}

.ms-logo {
  height: 110px;
  width: auto;
}

.ms-tagline {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
}

.ms-left-footer {
  font-size: .75rem;
  color: rgba(255,255,255,.2);
  line-height: 1.7;
}

@media (max-width: 860px) {
  .ms-left { display: none; }
}

/* ─── RIGHT PANEL ────────────────────────────────────── */
.ms-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow-y: auto;
}

.ms-form-wrap {
  width: 100%;
  max-width: 420px;
}

.ms-form-hd { margin-bottom: 2.5rem; }

.ms-title {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--t1);
  margin-bottom: .6rem;
}

.ms-subtitle {
  font-size: .9rem;
  color: var(--t3);
  line-height: 1.65;
}

/* ─── FORM ───────────────────────────────────────────── */
.ms-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.ms-field {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.ms-field label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--t2);
  letter-spacing: .02em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ms-forgot {
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
  transition: color .2s;
}
.ms-forgot:hover { color: var(--accent-hi); }

.ms-input-wrap {
  position: relative;
}

.ms-input-wrap svg {
  position: absolute;
  left: .9rem; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  stroke: var(--t3); fill: none;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
  pointer-events: none;
}

.ms-input-wrap input {
  width: 100%;
  padding: .85rem 1rem .85rem 2.6rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  background: var(--bg1);
  font-family: inherit;
  font-size: .9375rem;
  color: var(--t1);
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.ms-input-wrap input::placeholder { color: var(--t3); opacity: .6; }

.ms-input-wrap input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(22,163,74,.1);
}

/* ─── SUBMIT BUTTON ──────────────────────────────────── */
.ms-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  width: 100%;
  padding: .95rem;
  background: var(--accent-warm);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: filter .2s, transform .2s;
  margin-top: .25rem;
}
.ms-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.ms-btn:hover { filter: brightness(1.1); transform: translateY(-1px); }
.ms-btn:hover svg { transform: translateX(3px); }

/* ─── DIVIDER ────────────────────────────────────────── */
.ms-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  color: var(--t3);
  font-size: .8rem;
}
.ms-divider::before,
.ms-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── JOIN LINK ──────────────────────────────────────── */
.ms-join-link {
  display: block;
  text-align: center;
  padding: .85rem;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  color: var(--t1);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
  transition: border-color .2s, color .2s, background .2s;
  margin-bottom: 1.5rem;
}
.ms-join-link:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

/* ─── HELP ───────────────────────────────────────────── */
.ms-help {
  text-align: center;
  font-size: .8rem;
  color: var(--t3);
}
.ms-help a { color: var(--accent); text-decoration: none; }
