/* Social-styled auth pages (login/register), shown when arriving via the
   social.jtbsocial.com sign-in flow. Mirrors the visual language of
   social.jtbsocial.com/assets/css/landing.css so the sign-in experience
   looks continuous with Social, self-hosted here so it never depends on
   the social subdomain being reachable. */

.fb-landing {
  margin: 0;
  min-height: 80vh;
  background: #f0f2f5;
  display: flex;
  flex-direction: column;
  font-family: var(--fb-font);
  --fb-yellow: #ffcc00;
  --fb-yellow-hover: #e6b800;
  --fb-yellow-soft: #fff8d6;
  --fb-black: #1c1e21;
  --fb-border: #dddfe2;
  --fb-text-muted: #65676b;
  --fb-font: 'Segoe UI', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

.fb-landing-wrap {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 460px;
  gap: 32px;
  align-items: start;
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 16px 48px;
}

.fb-landing-left {
  padding-right: 32px;
  position: sticky;
  top: 56px;
}

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

.fb-landing-logo img {
  width: min(260px, 100%);
  height: auto;
  display: block;
}

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

.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: 24px 24px 16px;
}

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

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

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

.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, box-shadow 0.15s;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-family: inherit;
  text-decoration: none !important;
}

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

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

.fb-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0 14px;
  color: var(--fb-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;
}

.fb-login-form,
.fb-register-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fb-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.fb-label {
  color: var(--fb-text-muted);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

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

select.fb-select {
  height: 48px;
}

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

.fb-input-icon-wrap {
  position: relative;
}

.fb-input-icon-wrap .fb-input {
  padding-left: 40px;
}

.fb-input-icon-wrap > i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--fb-text-muted);
  font-size: 1rem;
}

.fb-password-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: var(--fb-text-muted);
  font-size: 1rem;
}

.fb-mobile-field {
  display: flex;
  align-items: stretch;
}

.fb-mobile-prefix {
  display: flex;
  align-items: center;
  padding: 0 12px;
  background: #f0f2f5;
  border: 1px solid var(--fb-border);
  border-right: none;
  border-radius: 6px 0 0 6px;
  color: #65676b;
  font-weight: 700;
  white-space: nowrap;
  font-size: 0.9375rem;
}

.fb-mobile-field .fb-input {
  border-radius: 0 6px 6px 0;
}

.fb-file-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fb-file-field input[type="file"] {
  font-size: 0.875rem;
  color: var(--fb-text-muted);
}

.fb-file-field input[type="file"]::file-selector-button {
  background: var(--fb-yellow);
  border: none;
  color: var(--fb-black);
  border-radius: 6px;
  font-weight: 700;
  padding: 8px 14px;
  margin-right: 10px;
  cursor: pointer;
  font-size: 0.8125rem;
}

.fb-file-field input[type="file"]::file-selector-button:hover {
  background: var(--fb-yellow-hover);
}

.fb-check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--fb-black);
}

.fb-check-row input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--fb-yellow-hover);
}

.fb-check-row a {
  color: var(--fb-yellow-hover);
  font-weight: 700;
  text-decoration: none;
}

.fb-check-row a:hover {
  text-decoration: underline;
}

.fb-username-feedback {
  margin-top: -2px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #c62828;
  min-height: 1em;
}

.fb-btn-login,
.fb-btn-submit {
  width: 100%;
  padding: 13px 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fb-black);
  background: var(--fb-yellow);
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, opacity 0.15s;
  font-family: inherit;
}

.fb-btn-login:hover,
.fb-btn-submit:hover {
  background: var(--fb-yellow-hover);
  color: var(--fb-black);
}

.fb-btn-login.loading,
.fb-btn-submit.loading {
  opacity: 0.65;
  pointer-events: none;
}

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

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

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

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

.fb-btn-signup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  margin: 0 auto;
  padding: 12px 20px;
  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;
  color: #fff;
}

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

.fb-secure-hints {
  background: #f7f8fa;
  border: 1px solid var(--fb-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.75rem;
  color: var(--fb-text-muted);
  line-height: 1.6;
}

.fb-secure-hints i {
  color: #31a24c;
  margin-right: 6px;
}

.fb-register-login,
.fb-login-signup-hint {
  text-align: center;
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: var(--fb-black);
}

.fb-register-login a,
.fb-login-signup-hint a {
  color: var(--fb-yellow-hover);
  font-weight: 700;
  text-decoration: none;
}

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

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

.fb-landing-footer {
  max-width: 1040px;
  width: 100%;
  margin: 0 auto;
  padding: 20px 16px 8px;
  font-size: 0.75rem;
  color: var(--fb-text-muted);
  text-align: center;
}

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

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

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

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

@media (max-width: 560px) {
  .fb-field-row {
    grid-template-columns: 1fr;
  }
}
