/* Facebook-style minimal landing */

.fb-landing {
  margin: 0;
  min-height: 100vh;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
}

.fb-landing-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 396px;
  gap: 32px;
  align-items: center;
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 72px 16px 32px;
}

/* Left — logo + tagline */
.fb-landing-left {
  padding-right: 32px;
}

.fb-landing-logo {
  display: inline-block;
  line-height: 0;
  margin-bottom: 0;
}

.fb-landing-logo img {
  width: min(280px, 100%);
  height: auto;
  border-radius: 0;
  display: block;
  background: transparent;
}

.fb-landing-tagline {
  font-size: 1.75rem;
  line-height: 1.25;
  font-weight: 400;
  color: var(--jtb-black);
  margin: 16px 0 0;
  max-width: 500px;
}

/* Right — login card */
.fb-landing-right {
  width: 100%;
}

.fb-login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  padding: 16px;
}

/* Social auth buttons */
.fb-social-auth {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 4px;
}

.fb-btn-social {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-family: inherit;
}

.fb-btn-social:hover {
  background: #f8f9fa;
  box-shadow: 0 1px 3px rgba(60, 64, 67, 0.15);
}

.fb-social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.fb-btn-google .fb-social-icon svg {
  display: block;
}

.fb-btn-guest {
  background: #f0f2f5;
  border-color: #dddfe2;
  color: var(--jtb-black);
}

.fb-btn-guest:hover {
  background: #e4e6eb;
}

.fb-btn-guest .fb-social-icon {
  color: #65676b;
  font-size: 1rem;
}

.fb-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 12px;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
}

.fb-or-divider::before,
.fb-or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #dadde1;
}

.fb-or-divider span {
  text-transform: lowercase;
}

/* Google account picker modal */
.google-picker {
  padding: 0;
  min-width: min(400px, 92vw);
}

.google-picker-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 20px 24px 0;
  font-size: 0.875rem;
  color: #5f6368;
  font-weight: 500;
}

.google-picker-title {
  margin: 20px 24px 4px;
  font-size: 1.5rem;
  font-weight: 400;
  color: #202124;
}

.google-picker-sub {
  margin: 0 24px 16px;
  font-size: 0.875rem;
  color: #5f6368;
}

.google-picker-sub strong {
  font-weight: 600;
  color: #202124;
}

.google-account-list {
  border-top: 1px solid #e8eaed;
  border-bottom: 1px solid #e8eaed;
}

.google-account-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 24px;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s;
}

.google-account-item:hover {
  background: #f1f3f4;
}

.google-account-av {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.google-account-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.google-account-meta strong {
  font-size: 0.9375rem;
  color: #202124;
  font-weight: 500;
}

.google-account-meta small {
  font-size: 0.8125rem;
  color: #5f6368;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.google-picker-cancel {
  display: block;
  width: 100%;
  padding: 16px 24px;
  border: none;
  background: transparent;
  color: #1a73e8;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}

.google-picker-cancel:hover {
  background: #f8f9fa;
}

.modal-box:has(.google-picker) {
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.modal-box:has(.google-picker) .modal-header {
  display: none;
}

/* Guest banner on feed */
html[data-theme="dark"] .fb-btn-social {
  background: #3a3b3c;
  border-color: #4e4f50;
  color: #e4e6eb;
}

html[data-theme="dark"] .fb-btn-guest {
  background: #242526;
}

html[data-theme="dark"] .google-picker-title {
  color: #e8eaed;
}

html[data-theme="dark"] .google-account-item:hover {
  background: #3a3b3c;
}

html[data-theme="dark"] .google-account-meta strong {
  color: #e8eaed;
}

.fb-login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fb-input {
  width: 100%;
  padding: 14px 16px;
  font-size: 1.0625rem;
  border: 1px solid #dddfe2;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fb-input:focus {
  border-color: var(--jtb-yellow);
  box-shadow: 0 0 0 2px rgba(255, 204, 0, 0.25);
}

.fb-btn-login {
  width: 100%;
  padding: 12px 16px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--jtb-black);
  background: var(--jtb-yellow);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
}

.fb-btn-login:hover {
  background: var(--jtb-yellow-hover);
}

.fb-login-error {
  color: #e41e3f;
  font-size: 0.875rem;
  text-align: center;
  margin: 0;
}

.fb-login-error.hidden {
  display: none;
}

.fb-forgot {
  text-align: center;
  font-size: 0.875rem;
  color: var(--jtb-yellow-hover);
  font-weight: 600;
  text-decoration: none;
}

.fb-forgot:hover {
  text-decoration: underline;
}

.fb-login-divider {
  height: 1px;
  background: #dadde1;
  margin: 8px 0 4px;
}

.fb-btn-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 16px;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  background: #42b72a;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}

.fb-btn-signup:hover {
  background: #36a420;
}

.fb-admin-hint {
  margin: 14px 0 0;
  text-align: center;
  font-size: 0.8125rem;
}

.fb-admin-hint a {
  color: var(--jtb-text-muted, #65676b);
  text-decoration: none;
}

.fb-admin-hint a:hover {
  text-decoration: underline;
  color: var(--jtb-blue, #1877f2);
}

.fb-landing-promo {
  text-align: center;
  font-size: 0.875rem;
  color: var(--jtb-black);
  margin: 28px 0 0;
}

.fb-landing-promo strong {
  font-weight: 700;
}

/* Footer */
.fb-landing-footer {
  max-width: 980px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.fb-landing-footer span {
  cursor: default;
}

.fb-footer-meta {
  margin-left: auto;
  color: var(--text-muted);
}

/* Dark theme */
html[data-theme="dark"] .fb-landing {
  background: #18191a;
}

html[data-theme="dark"] .fb-landing-tagline {
  color: #e4e6eb;
}

html[data-theme="dark"] .fb-login-card {
  background: #242526;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .fb-input {
  background: #3a3b3c;
  border-color: #4e4f50;
  color: #e4e6eb;
}

html[data-theme="dark"] .fb-landing-promo {
  color: #e4e6eb;
}

/* Mobile */
@media (max-width: 900px) {
  .fb-landing-wrap {
    grid-template-columns: 1fr;
    padding-top: 24px;
    gap: 24px;
    max-width: 396px;
  }

  .fb-landing-left {
    text-align: center;
    padding-right: 0;
  }

  .fb-landing-logo img {
    width: min(200px, 70vw);
    margin: 0 auto;
  }

  .fb-landing-tagline {
    font-size: 1.25rem;
    margin: 12px auto 0;
  }

  .fb-landing-promo {
    margin-top: 20px;
  }

  .fb-footer-meta {
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .fb-landing-footer {
    justify-content: center;
  }
}

@media (max-width: 420px) {
  .fb-login-card {
    box-shadow: none;
    border-radius: 0;
    padding: 12px 0;
  }

  .fb-landing-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
}

/* Register page */
.fb-register-wrap {
  align-items: flex-start;
  padding-top: 48px;
}

.fb-register-card {
  padding: 20px 16px 16px;
}

.fb-register-title {
  margin: 0 0 4px;
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--jtb-black);
}

.fb-register-sub {
  margin: 0 0 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.fb-name-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.fb-register-hint {
  margin: 0;
  font-size: 0.6875rem;
  color: var(--text-muted);
  line-height: 1.4;
  text-align: center;
}

.fb-btn-signup-full {
  width: 100%;
}

.fb-register-login {
  text-align: center;
  margin: 12px 0 0;
  font-size: 0.9375rem;
}

.fb-register-login a {
  color: var(--jtb-yellow-hover);
  font-weight: 600;
  text-decoration: none;
}

.fb-register-login a:hover {
  text-decoration: underline;
}

.fb-ref-banner {
  background: var(--jtb-yellow-soft);
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  text-align: center;
  margin: 0 0 12px;
}

.fb-ref-banner.hidden {
  display: none;
}

.fb-register-success {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: #e7f3ff;
  border: 1px solid #1877f2;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 16px;
  color: #1c1e21;
}

.fb-register-success i {
  color: #1877f2;
  font-size: 1.5rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.fb-register-success strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 6px;
}

.fb-register-success p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: #444950;
}

.fb-register-success.hidden,
.fb-register-success-actions.hidden,
.fb-resend-link.hidden {
  display: none;
}

.fb-register-success-actions {
  margin-top: 16px;
  text-align: center;
}

.fb-register-login-btn {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.fb-resend-link,
.fb-resend-inline {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  margin: 8px 0 0;
  color: #1877f2;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.fb-resend-link:hover,
.fb-resend-inline:hover {
  text-decoration: underline;
}

.fb-resend-inline {
  display: inline;
  margin: 0;
}

.fb-login-error .fb-resend-inline {
  color: #1877f2;
}

.fb-register-form-done {
  opacity: 0.55;
  pointer-events: none;
}

html[data-theme="dark"] .fb-register-title {
  color: #e4e6eb;
}

.fb-username-field {
  display: flex;
  align-items: stretch;
  margin-bottom: 12px;
}

.fb-username-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f0f2f5;
  border: 1px solid #dddfe2;
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: #65676b;
  font-weight: 700;
}

.fb-username-input {
  border-radius: 0 6px 6px 0 !important;
  margin-bottom: 0 !important;
}

.fb-username-feedback {
  margin: -4px 0 10px;
  font-size: 0.875rem;
  font-weight: 600;
}

.fb-username-feedback.is-valid {
  color: #31a24c;
}

.fb-username-feedback.is-invalid {
  color: #c62828;
}

.fb-username-feedback i {
  margin-right: 4px;
}

html[data-theme="dark"] .fb-username-prefix {
  background: #3a3b3c;
  border-color: #3e4042;
  color: #b0b3b8;
}
