/* Landing / Auth Gate Page */
.landing-page {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  background: #F8FAFC;
  overflow: hidden;
}

.landing-page.hidden { display: none; }

/* Left side — branding */
.landing-brand {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: linear-gradient(145deg, #0F172A 0%, #1E1B4B 50%, #312E81 100%);
  color: #fff;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.landing-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(99,102,241,.25) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(124,58,237,.2) 0%, transparent 50%);
}
.landing-brand::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.landing-brand-content {
  position: relative;
  text-align: left;
  max-width: 420px;
}

/* Logo — "Best Planner" text badge */
.landing-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 16px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
  letter-spacing: -.3px;
}

.landing-brand p {
  font-size: .92rem;
  opacity: .6;
  line-height: 1.7;
  margin-bottom: 36px;
}

/* Feature list */
.landing-features {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(255,255,255,.08);
}
.landing-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.landing-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #A5B4FC;
}
.landing-feature-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.landing-feature-text strong {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: #E0E7FF;
}
.landing-feature-text span {
  font-size: .82rem;
  opacity: .5;
  line-height: 1.4;
}

/* Right side — form */
.landing-form-wrap {
  width: 460px;
  min-width: 460px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 52px;
  background: #fff;
}
.landing-form-header {
  margin-bottom: 28px;
}
.landing-form-header h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 6px;
}
.landing-form-header p {
  font-size: .86rem;
  color: #64748B;
  line-height: 1.5;
}

/* Form fields */
.landing-form-wrap .auth-form { display: flex; flex-direction: column; gap: 16px; }
.landing-form-wrap .auth-field { display: flex; flex-direction: column; gap: 5px; }
.landing-form-wrap .auth-field label {
  font-size: .8rem;
  font-weight: 600;
  color: #374151;
  letter-spacing: .2px;
}
.landing-form-wrap .auth-field input {
  padding: 11px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #F8FAFC;
  font-size: .9rem;
  color: #0F172A;
  outline: none;
  transition: border .2s, box-shadow .2s;
}
.landing-form-wrap .auth-field input:focus {
  border-color: #6366F1;
  box-shadow: 0 0 0 3px rgba(99,102,241,.1);
}
.landing-form-wrap .auth-submit {
  padding: 12px;
  border-radius: 10px;
  background: linear-gradient(135deg, #4F46E5, #7C3AED);
  color: #fff;
  font-size: .92rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .1s;
  margin-top: 4px;
}
.landing-form-wrap .auth-submit:hover { opacity: .92; }
.landing-form-wrap .auth-submit:active { transform: scale(.99); }
.landing-form-wrap .auth-submit:disabled { opacity: .5; cursor: not-allowed; }
.landing-form-wrap .auth-error {
  padding: 12px 14px;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: .84rem;
  line-height: 1.4;
  border: 1px solid #FECACA;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  padding: 0 14px;
  transition: max-height .3s, opacity .3s, padding .3s;
}
.landing-form-wrap .auth-error.show {
  max-height: 80px;
  opacity: 1;
  padding: 12px 14px;
}
.landing-form-wrap .auth-switch {
  text-align: center;
  font-size: .84rem;
  color: #64748B;
  margin-top: 20px;
}
.landing-form-wrap .auth-switch a {
  color: #4F46E5;
  cursor: pointer;
  font-weight: 600;
}
.landing-form-wrap .auth-switch a:hover { text-decoration: underline; }

/* Divider */
.landing-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: #94A3B8;
  font-size: .78rem;
}
.landing-divider::before,
.landing-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #E2E8F0;
}

/* Google button */
.landing-google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  background: #fff;
  font-size: .9rem;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: background .2s, border-color .2s, box-shadow .2s;
}
.landing-google-btn:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.landing-google-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}
.landing-google-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* Footer */
.landing-footer {
  margin-top: auto;
  padding-top: 24px;
  font-size: .72rem;
  color: #94A3B8;
  text-align: center;
  letter-spacing: .3px;
}

/* Mobile features — hidden on desktop */
.landing-features-mobile { display: none; }

/* Responsive — mobile stacks vertically */
@media (max-width: 860px) {
  .landing-page { flex-direction: column; overflow-y: auto; }
  .landing-brand {
    flex: none;
    padding: 32px 24px;
    min-height: 140px;
  }
  .landing-brand-content { text-align: center; }
  .landing-brand p, .landing-features { display: none; }
  .landing-form-wrap {
    flex: 1;
    width: 100%;
    min-width: 0;
    padding: 24px;
  }
  .landing-features-mobile {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #E2E8F0;
  }
  .landing-features-mobile .landing-feature {
    padding: 14px 0;
    border-bottom: 1px solid #E2E8F0;
  }
  .landing-features-mobile .landing-feature-icon {
    background: linear-gradient(135deg, rgba(79,70,229,.1), rgba(124,58,237,.1));
    color: #6366F1;
  }
  .landing-features-mobile .landing-feature-text strong {
    color: #1E293B;
  }
  .landing-features-mobile .landing-feature-text span {
    color: #64748B;
    opacity: 1;
  }
}
