/* Member login — matches Global Money 360 website theme */

:root {
  --gm-teal: #1a7a8a;
  --gm-teal-hover: #13626f;
  --gm-teal-soft: #e1f0f8;
  --gm-navy: #0f2438;
  --gm-navy-2: #12283e;
  --gm-navy-deep: #0b1928;
  --gm-text: #4b5f73;
  --gm-muted: #6e8499;
  --gm-line: #e6eef5;
  --gm-sheet: #f6fafe;
  --gm-white: #ffffff;
  --gm-heading: 'Plus Jakarta Sans', system-ui, sans-serif;
  --gm-body: 'Inter', system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { -webkit-text-size-adjust: 100%; }

body.gm-auth {
  min-height: 100vh;
  font-family: var(--gm-body);
  color: var(--gm-text);
  background: #fbfdfe;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

.gm-auth-wrap {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

/* Left brand panel */
.gm-auth-brand {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 12% 10%, rgba(32, 160, 180, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 90% 90%, rgba(56, 189, 248, 0.12), transparent 50%),
    linear-gradient(155deg, #0d3858 0%, #08243c 58%, #06182a 100%);
  color: #fff;
  padding: 40px 48px 44px;
  display: flex;
  flex-direction: column;
}

.gm-auth-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0) 46%);
  pointer-events: none;
}

.gm-auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.gm-auth-orb-a {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -70px;
  background: radial-gradient(circle, rgba(32, 153, 178, 0.35), transparent 70%);
}

.gm-auth-orb-b {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 40px;
  background: radial-gradient(circle, rgba(76, 229, 203, 0.16), transparent 70%);
}

.gm-auth-brand-inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-width: 480px;
}

.gm-auth-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  width: fit-content;
  background: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.18);
  margin-bottom: 48px;
}

.gm-auth-logo img {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.gm-auth-logo-text {
  font-family: var(--gm-heading);
  font-weight: 800;
  color: var(--gm-navy);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.gm-auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: rgba(225, 240, 248, 0.14);
  border: 1px solid rgba(201, 226, 242, 0.28);
  color: #9fd4e4;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.gm-auth-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ce5cb;
}

.gm-auth-brand h1 {
  font-family: var(--gm-heading);
  font-size: clamp(2rem, 3.4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}

.gm-auth-brand p.lead {
  font-size: 1.02rem;
  line-height: 1.65;
  color: #b0cbe0;
  max-width: 42ch;
  margin-bottom: 32px;
}

.gm-auth-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
}

.gm-auth-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #d5e6f2;
}

.gm-auth-trust-item i {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: #4ce5cb;
  font-size: 0.9rem;
}

.gm-auth-copy {
  margin-top: 36px;
  font-size: 0.8rem;
  color: #7ea0b8;
}

/* Right form panel */
.gm-auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 36px 48px;
  background:
    radial-gradient(ellipse 70% 50% at 80% 0%, #eaf4fa 0%, transparent 60%),
    #f7fafc;
        align-items: center;
}

.gm-auth-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-bottom: 28px;
  color: #3b5066;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease, gap 0.2s ease;
}

.gm-auth-home:hover {
  color: var(--gm-teal);
  gap: 11px;
}

.gm-auth-card {
  width: 100%;
  max-width: 440px;
  background: var(--gm-white);
  border: 1px solid #dce8f2;
  border-radius: 20px;
  padding: 36px 34px 32px;
  box-shadow: 0 16px 40px rgba(11, 31, 54, 0.06);
}

.gm-auth-card-kicker {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gm-teal);
  margin-bottom: 8px;
}

.gm-auth-card h2 {
  font-family: var(--gm-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gm-navy);
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.gm-auth-card .sub {
  font-size: 0.95rem;
  color: var(--gm-muted);
  line-height: 1.55;
  margin-bottom: 24px;
}

.gm-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 18px;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
}

.gm-alert-ok {
  background: #e8faf4;
  color: #0f766e;
  border: 1px solid #99f6e4;
}

.gm-alert-err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.gm-alert-info {
  background: #eef6fb;
  color: #1a7a8a;
  border: 1px solid #c9e2f2;
}

.gm-auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gm-field label,
.gm-label-row label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #3b5066;
  margin-bottom: 8px;
}

.gm-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.gm-forgot {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--gm-teal);
  text-decoration: none;
}

.gm-forgot:hover { text-decoration: underline; }

.gm-field input {
  width: 100%;
  padding: 13px 16px;
  background: var(--gm-sheet);
  border: 1.5px solid #d9e5ee;
  border-radius: 10px;
  font-family: var(--gm-body);
  font-size: 0.95rem;
  color: var(--gm-navy);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gm-field input::placeholder { color: #92a7ba; }

.gm-field input:focus {
  background: #fff;
  border-color: var(--gm-teal);
  box-shadow: 0 0 0 3px rgba(26, 122, 138, 0.12);
}

.gm-field input:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.up-password-wrap { position: relative; }
.up-password-wrap input { padding-right: 46px; }

.up-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #7993a7;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.up-eye:hover { color: var(--gm-teal); }
.up-eye svg { width: 18px; height: 18px; }
.up-eye .eye-closed { display: none; }
.up-eye.is-visible .eye-open { display: none; }
.up-eye.is-visible .eye-closed { display: block; }
.up-eye:disabled { opacity: 0.5; cursor: not-allowed; }

.gm-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 6px;
  padding: 14px 22px;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-family: var(--gm-heading);
  font-size: 0.98rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #187787 0%, #146775 100%);
  box-shadow: 0 4px 14px rgba(25, 122, 138, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gm-submit:hover {
  background: linear-gradient(135deg, #136573 0%, #0e4c56 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(25, 122, 138, 0.35);
}

.gm-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

a.gm-submit {
  text-decoration: none;
  box-sizing: border-box;
}

.gm-dev-link {
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--gm-sheet);
  border: 1px solid var(--gm-line);
}

.gm-dev-link strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--gm-navy);
  margin-bottom: 4px;
}

.gm-dev-link p {
  font-size: 0.82rem;
  color: var(--gm-muted);
  margin-bottom: 8px;
}

.gm-dev-link a {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gm-teal);
  word-break: break-all;
}

.gm-auth-card .sub strong {
  color: var(--gm-navy);
  font-weight: 700;
}

.gm-auth-links {
  margin-top: 22px;
  display: grid;
  gap: 8px;
  text-align: center;
}

.gm-auth-links p {
  font-size: 0.88rem;
  color: var(--gm-muted);
}

.gm-auth-links a {
  color: var(--gm-teal);
  font-weight: 700;
  text-decoration: none;
}

.gm-auth-links a:hover { text-decoration: underline; }

.gm-auth-meta {
  margin-top: 18px;
  font-size: 0.78rem;
  color: #8da4b8;
  text-align: center;
}

/* Maintenance overlay — same structure, website colors */
.maint-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.maint-backdrop {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(26, 122, 138, 0.18), transparent 70%),
    rgba(8, 23, 38, 0.58);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.maint-modal {
  position: relative;
  z-index: 1;
  width: min(420px, 100%);
  background: #fff;
  border-radius: 20px;
  border: 1px solid #dce8f2;
  box-shadow: 0 28px 64px rgba(11, 31, 54, 0.28);
  padding: 1.75rem 1.5rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.maint-glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 280px;
  height: 180px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(26, 122, 138, 0.22), transparent 70%);
  pointer-events: none;
}

.maint-icon-wrap {
  position: relative;
  width: 76px;
  height: 76px;
  margin: 0 auto 1.15rem;
}

.maint-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(26, 122, 138, 0.35);
  animation: maint-ring 2.4s ease-out infinite;
}

@keyframes maint-ring {
  0% { transform: scale(0.85); opacity: 0.9; }
  100% { transform: scale(1.35); opacity: 0; }
}

.maint-mark {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #0d3858 0%, #08243c 100%);
  color: #4ce5cb;
}

.maint-mark svg { width: 26px; height: 26px; }

.maint-head { margin-bottom: 1.15rem; }

.maint-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gm-teal);
}

.maint-head h2 {
  margin: 0;
  font-family: var(--gm-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--gm-navy);
}

.maint-sub {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--gm-muted);
  font-weight: 500;
}

.maint-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  text-align: left;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-bottom: 0.7rem;
}

.maint-box:last-child { margin-bottom: 0; }

.maint-box-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.maint-box-ico svg { width: 18px; height: 18px; }

.maint-box strong {
  display: block;
  margin-bottom: 0.15rem;
  font-size: 0.88rem;
  font-weight: 800;
}

.maint-box span { display: block; font-weight: 500; }

.maint-box.is-warn {
  background: #eef6fb;
  border: 1px solid #c9e2f2;
  color: #0d5c75;
}

.maint-box.is-warn .maint-box-ico {
  background: rgba(26, 122, 138, 0.12);
  color: var(--gm-teal);
}

.maint-box.is-err {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
}

.maint-box.is-err .maint-box-ico {
  background: rgba(185, 28, 28, 0.1);
  color: #b91c1c;
}

@media (max-width: 960px) {
  .gm-auth-wrap {
    grid-template-columns: 1fr;
  }

  .gm-auth-brand {
    min-height: auto;
    padding: 28px 24px 32px;
  }

  .gm-auth-logo { margin-bottom: 28px; }

  .gm-auth-brand h1 { font-size: 1.85rem; }

  .gm-auth-trust { margin-top: 24px; }

  .gm-auth-copy { margin-top: 20px; }

  .gm-auth-panel {
    padding: 28px 20px 40px;
  }

  .gm-auth-card {
    max-width: none;
    padding: 28px 20px;
  }
}

@media (max-width: 480px) {
  .gm-auth-brand h1 { font-size: 1.6rem; }
  .gm-auth-card h2 { font-size: 1.4rem; }
}
