@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Roboto:wght@400;500;700&display=swap");

/* Guest login — mirrors Flutter AuthSplitLoginPage (image | form). */
:root {
  --ge-stone-200: #e7e5e4;
  --ge-stone-300: #d6d3d1;
  --ge-stone-400: #a8a29e;
  --ge-stone-500: #78716c;
  --ge-stone-600: #57534e;
  --ge-stone-800: #292524;
  --ge-stone-900: #1c1917;
  --ge-sky-500: #0ea5e9;
  --ge-brand: #244b68;
  --ge-ctl-h: 52px;
  --ge-radius: 12px;
  --ge-destructive: #dc2626;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #fff;
  color: var(--ge-stone-900);
  font-family: Inter, Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.ge-login {
  display: flex;
  min-height: 100%;
  width: 100%;
}

.ge-login__photo {
  flex: 2 1 0;
  position: relative;
  min-width: 0;
  /* Photo : form ≈ 2 : 1. */
  align-self: stretch;
  background: #1a3348 center / cover no-repeat;
  background-image: url("assets/hero-yangon.jpg");
}
.ge-login__photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.2), rgba(0,0,0,.08), transparent);
  pointer-events: none;
}

.ge-login__panel {
  /* Photo : form ≈ 2 : 1 on wide screens; form stays readable. */
  flex: 1 1 34%;
  min-width: 380px;
  max-width: 520px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #fff;
}
.ge-login__inner {
  width: 100%;
  max-width: 440px;
  padding: 28px 36px 32px;
  overflow: auto;
}

.ge-login__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ge-brand);
  margin-bottom: 20px;
}
.ge-login__brand img {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  object-fit: contain;
}
.ge-login__brand span {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ge-login__title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--ge-stone-900);
}
.ge-login__sub {
  margin: 6px 0 0;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--ge-stone-500);
}

.ge-login__stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 16px;
}

.ge-ctl {
  height: var(--ge-ctl-h);
  width: 100%;
  border: 1px solid var(--ge-stone-300);
  border-radius: var(--ge-radius);
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--ge-stone-800);
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ge-ctl:hover { border-color: #c4c0bd; }
.ge-ctl:focus-visible {
  outline: none;
  border-color: var(--ge-sky-500);
  box-shadow: 0 0 0 1.5px var(--ge-sky-500);
}
.ge-ctl--primary {
  justify-content: center;
  background: var(--ge-sky-500);
  border-color: var(--ge-sky-500);
  color: #fff;
  font-weight: 700;
}
.ge-ctl--primary:hover { filter: brightness(1.05); }
.ge-ctl--primary:disabled {
  background: var(--ge-stone-300);
  border-color: var(--ge-stone-300);
  cursor: not-allowed;
  filter: none;
}
.ge-ctl svg, .ge-ctl img { flex-shrink: 0; }

.ge-field {
  margin-top: 10px;
}
.ge-field:first-of-type { margin-top: 0; }
.ge-field__shell {
  height: var(--ge-ctl-h);
  border: 1px solid var(--ge-stone-300);
  border-radius: var(--ge-radius);
  background: #fff;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.ge-field__shell:focus-within {
  border-color: var(--ge-sky-500);
  box-shadow: 0 0 0 1.5px var(--ge-sky-500);
}
.ge-field__shell svg { color: var(--ge-stone-400); flex-shrink: 0; }
.ge-field__shell input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
  background: transparent !important;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 0;
  font-size: 15px;
  line-height: 1.25;
  color: var(--ge-stone-800);
  height: 100%;
}
.ge-field__shell input:focus,
.ge-field__shell input:focus-visible {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.ge-field__shell input::placeholder { color: var(--ge-stone-400); }
.ge-field__shell button {
  border: 0;
  background: transparent;
  padding: 0;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ge-stone-400);
}
.ge-field__hint {
  margin: 4px 0 0;
  padding-left: 16px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--ge-stone-400);
}

.ge-or {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--ge-stone-500);
  font-size: 13px;
}
.ge-or::before, .ge-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--ge-stone-200);
}

.ge-toggle {
  height: var(--ge-ctl-h);
  border: 1px solid var(--ge-stone-300);
  border-radius: var(--ge-radius);
  background: #fff;
  display: flex;
  padding: 3px;
  gap: 0;
  margin-bottom: 14px;
}
.ge-toggle button {
  flex: 1;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  color: var(--ge-stone-600);
  cursor: pointer;
}
.ge-toggle button[aria-selected="true"] {
  background: var(--ge-sky-500);
  color: #fff;
}

.ge-gap-10 { margin-top: 10px; }
.ge-gap-14 { margin-top: 14px; }
.ge-error {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ge-destructive);
}
.ge-auth-extras {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.ge-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ge-stone-600);
  cursor: pointer;
  user-select: none;
}
.ge-remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--ge-sky-500);
  cursor: pointer;
}
.ge-forgot {
  font-size: 13px;
  font-weight: 700;
  color: var(--ge-sky-500);
  text-decoration: none;
}
.ge-forgot:hover { text-decoration: underline; }
.ge-foot {
  margin-top: 14px;
  font-size: 14px;
  color: var(--ge-stone-600);
  text-align: center;
}
.ge-foot button {
  border: 0;
  background: none;
  color: var(--ge-sky-500);
  font-weight: 700;
  font-size: inherit;
  cursor: pointer;
  padding: 0;
}
.ge-note {
  margin-top: 18px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--ge-stone-400);
  text-align: center;
}

.ge-hidden { display: none !important; }

@media (max-width: 879px) {
  .ge-login { flex-direction: column; }
  .ge-login__photo {
    flex: none;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 0;
    height: auto;
  }
  .ge-login__panel {
    flex: 1 1 auto;
    max-width: none;
    min-width: 0;
  }
  .ge-login__inner { padding: 28px 24px 32px; }
}
