/* BeCareFood · Login screen, Liquid Glass
   Requires liquid-glass.css loaded first. */

.lg-login {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: calc(var(--lg-safe-top) + 12px) var(--lg-pad) 0;
}

/* Brighter ambient color for this screen */
.lg-login::before {
  content: "";
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(360px 360px at 10% 6%, rgba(46, 158, 91, .38), transparent 70%),
    radial-gradient(300px 300px at 100% 42%, rgba(255, 122, 69, .30), transparent 70%),
    radial-gradient(320px 320px at 20% 78%, rgba(45, 156, 219, .26), transparent 70%);
}

.lg-login--v2 {
  padding-bottom: calc(var(--lg-safe-bottom) + 24px);
}

/* Centered column: logo, wordmark, card — all in normal flow */
.lg-login__center {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px;
  width: 100%; max-width: 400px; margin: 0 auto;
  padding: 24px 4px 16px;
}

.lg-login__logo {
  width: 96px; height: 96px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 18px 36px rgba(31, 42, 46, .18);
  -webkit-backdrop-filter: blur(18px) saturate(190%);
  backdrop-filter: blur(18px) saturate(190%);
}
.lg-login__logo img { width: 100%; height: 100%; display: block; }

.lg-login__name { font-size: 30px; letter-spacing: -0.8px; color: var(--lg-ink); }

/* The form card: in-flow (never fixed), so it can't overlap header/tabs */
.lg-login__card {
  width: 100%;
  border-radius: 28px; padding: 20px 18px;
  display: flex; flex-direction: column; gap: 12px;
}
.lg-login__form { display: flex; flex-direction: column; gap: 12px; }
.lg-login__form .linkbtn { align-self: center; }
.lg-login__text {
  margin: 0 0 4px; text-align: center;
  font: 500 16px/1.5 var(--lg-font-body); color: var(--lg-muted);
}

.lg-field {
  height: 56px; border-radius: 20px; padding: 0 16px;
  display: flex; align-items: center; gap: 10px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid rgba(31, 42, 46, .08);
}
.lg-field svg { flex-shrink: 0; }
.lg-field input {
  flex: 1; min-width: 0; height: 100%;
  border: 0; outline: 0; background: transparent;
  font: 500 17px var(--lg-font-body); color: var(--lg-ink);
}
.lg-field input::placeholder { color: #6B7570; }
.lg-field:focus-within { border-color: var(--lg-blue); box-shadow: 0 0 0 3px rgba(45, 156, 219, .25); }

/* Coral action button (text stays dark for contrast on coral) */
.lg-btn--coral {
  min-height: 56px; width: 100%;
  font-family: var(--lg-font-title); font-size: 18px;
  color: #1F2A2E;
  background: rgba(255, 122, 69, .95);
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .55),
    inset 0 -1px 0 rgba(255, 255, 255, .2),
    0 12px 28px rgba(255, 122, 69, .32);
}


/* Short screens (iPhone SE): tighten spacing */
@media (max-height: 700px) {
  .lg-login__center { gap: 12px; padding-top: 12px; }
  .lg-login__logo { width: 76px; height: 76px; }
  .lg-login__name { font-size: 26px; }
}
