:root {
  --la-gate-teal: #2ec4b6;
  --la-gate-teal-dark: #168f87;
  --la-gate-coral: #ff6b6b;
  --la-gate-navy: #1b2a4a;
  --la-gate-cream: #fffaf0;
}

.la-auth-gate {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  min-height: 100vh;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  color: var(--la-gate-navy);
  background:
    radial-gradient(circle at 10% 10%, rgba(46, 196, 182, 0.28), transparent 32%),
    radial-gradient(circle at 90% 90%, rgba(255, 107, 107, 0.24), transparent 30%),
    rgba(27, 42, 74, 0.48);
  backdrop-filter: blur(8px);
  font-family: Nunito, Arial, sans-serif;
}

body.la-auth-gate-open { overflow: hidden; }

.la-auth-gate-card {
  position: relative;
  width: min(540px, 100%);
  padding: clamp(30px, 6vw, 48px);
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(27, 42, 74, 0.14);
  text-align: center;
}

.la-auth-gate-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: block;
  object-fit: cover;
  box-shadow: 0 10px 24px rgba(46, 196, 182, 0.28);
}

.la-auth-gate-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--la-gate-navy);
  background: #eef2f5;
  cursor: pointer;
  font: 800 26px/1 Nunito, Arial, sans-serif;
}

.la-auth-gate-close:hover { background: #e2e8ec; }

.la-auth-gate h1 {
  margin: 0 0 12px;
  color: var(--la-gate-navy);
  font-size: clamp(27px, 5vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.la-auth-gate-copy {
  margin: 0 auto 24px;
  max-width: 430px;
  color: #536078;
  font-size: 17px;
  line-height: 1.55;
}

.la-auth-gate-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.la-auth-provider-btn {
  width: 100%;
  min-height: 54px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  font: 900 16px/1 Nunito, Arial, sans-serif;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.la-auth-google-btn {
  border: 2px solid var(--la-gate-navy);
  color: white;
  background: var(--la-gate-navy);
  box-shadow: 0 5px 0 #0f1a30;
}

.la-auth-email-btn {
  border: 2px solid var(--la-gate-teal);
  color: white;
  background: var(--la-gate-teal);
  box-shadow: 0 5px 0 var(--la-gate-teal-dark);
}

.la-auth-provider-btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

.la-auth-google-btn:hover:not(:disabled) {
  box-shadow: 0 7px 0 #0f1a30;
}

.la-auth-email-btn:hover:not(:disabled) {
  background: var(--la-gate-teal-dark);
  border-color: var(--la-gate-teal-dark);
  box-shadow: 0 7px 0 #0d6f69;
}

.la-auth-provider-btn:active:not(:disabled) {
  transform: translateY(2px);
}

.la-auth-google-btn:active:not(:disabled) {
  box-shadow: 0 3px 0 #0f1a30;
}

.la-auth-email-btn:active:not(:disabled) {
  box-shadow: 0 3px 0 #0d6f69;
}

.la-auth-provider-btn:disabled {
  cursor: wait;
  opacity: 0.72;
}

.la-auth-google-mark {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.la-auth-email-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.la-auth-email-label {
  color: var(--la-gate-navy);
  font-size: 13px;
  font-weight: 900;
}

.la-auth-email-input {
  width: 100%;
  border: 1.5px solid rgba(27, 42, 74, 0.16);
  border-radius: 13px;
  padding: 13px 14px;
  color: var(--la-gate-navy);
  background: #fff;
  font: 700 15px/1.2 Nunito, Arial, sans-serif;
}

.la-auth-email-input:focus {
  outline: 3px solid rgba(46, 196, 182, 0.22);
  border-color: var(--la-gate-teal-dark);
}

.la-auth-email-helper {
  margin: 0;
  color: #68748a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.la-auth-gate-note {
  margin: 18px 0 0;
  color: #68748a;
  font-size: 13px;
  line-height: 1.45;
}

.la-auth-gate-reminder {
  margin: 16px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(27, 42, 74, 0.1);
  border-radius: 13px;
  color: #536078;
  background: #f7fafa;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.la-auth-gate-sent {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(46, 196, 182, 0.35);
  border-radius: 12px;
  color: var(--la-gate-teal-dark);
  background: rgba(46, 196, 182, 0.12);
  font-size: 14px;
  font-weight: 900;
  line-height: 1.4;
}

.la-auth-gate-sent.is-visible {
  display: block;
}

.la-auth-gate-error {
  display: none;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 107, 107, 0.35);
  border-radius: 12px;
  color: #9c3030;
  background: rgba(255, 107, 107, 0.1);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
}

.la-auth-gate-error.is-visible {
  display: block;
}

@media (max-width: 520px) {
  .la-auth-gate { padding: 18px; }
  .la-auth-gate-card { border-radius: 22px; }
}
