:root {
  --bg-color: #f0f2f5;
  --card-bg: #fff;
  --primary-blue: #1877f2;
  --primary-hover: #166fe5;
  --create-green: #42b72a;
  --create-hover: #36a420;
  --text-color: #1c1e21;
  --border-color: #dddfe2;
  --input-border: #dddfe2;
  --link-color: #1877f2;
}

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

body {
  font-family: Helvetica, Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.main-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  padding-top: 72px;
  padding-bottom: 112px;
  flex-grow: 1;
}

.content-container {
  display: flex;
  justify-content: space-between;
  width: 980px;
  max-width: 100%;
  padding: 20px;
}

/* Left Column */
.left-col {
  width: 580px;
  padding-right: 32px;
  box-sizing: border-box;
  margin-top: 40px;
}

.fb-logo {
  color: var(--primary-blue);
  font-size: 60px;
  font-weight: bold;
  letter-spacing: -3px;
  margin-bottom: 10px;
  margin-left: -4px; /* Adjust visual alignment */
}

.fb-tagline {
  font-size: 28px;
  font-weight: normal;
  line-height: 32px;
  width: 500px; /* Force line break similar to image if needed */
}

/* Right Column */
.right-col {
  width: 396px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-card {
  background-color: var(--card-bg);
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, .1), 0 8px 16px rgba(0, 0, 0, .1);
  padding-top: 20px;
  padding-bottom: 28px;
  padding-left: 16px;
  padding-right: 16px;
  width: 100%;
  text-align: center;
}

.input-group {
  margin-bottom: 12px;
  position: relative;
}

.error-msg {
  color: #bf1650;
  font-size: 13px;
  text-align: left;
  margin-top: 5px;
  display: none;
}

.input-error {
  border: 1px solid #bf1650 !important;
  box-shadow: 0 0 0 1px #d32f2f !important;
}

.error-icon {
  position: absolute;
  right: 10px;
  top: 12px;
  display: none;
  pointer-events: none;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  font-size: 17px;
  border: 1px solid var(--input-border);
  border-radius: 6px;
  outline: none;
}

.input-group input:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 2px #e7f3ff;
}

.login-btn {
  width: 100%;
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 20px;
  line-height: 48px;
  padding: 0 16px;
  font-weight: bold;
  cursor: pointer;
  margin-top: 6px;
  transition: background-color 0.2s;
}

.login-btn:hover {
  background-color: var(--primary-hover);
}

.forgot-wrapper {
  margin-top: 16px;
  margin-bottom: 20px;
}

.forgot-link {
  color: var(--link-color);
  font-size: 14px;
  text-decoration: none;
}

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

.divider {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.create-btn-wrapper {
  text-align: center;
}

.create-btn {
  background-color: var(--create-green);
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 17px;
  line-height: 48px;
  padding: 0 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.2s;
}

.create-btn:hover {
  background-color: var(--create-hover);
}

.page-create-text {
  margin-top: 28px;
  font-size: 14px;
  color: #1c1e21;
}

.create-page-link {
  font-weight: bold;
  text-decoration: none;
  color: #1c1e21;
}

.create-page-link:hover {
  text-decoration: underline;
}

/* =========================================
   Registration Modal Styles
   ========================================= */
.modal {
  display: none; /* Hidden by default */
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: #f0f2f5; /* Solid background matching body color to hide content behind */
  flex-direction: column; /* Stack logo and content vertically */
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #fff;
  width: 432px;
  max-width: 95%;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1), 0 8px 16px rgba(0, 0, 0, 0.1);
  position: relative;
  display: flex;
  flex-direction: column;
}

.modal-header {
  padding: 10px 16px;
  border-bottom: 1px solid #dadde1;
  position: relative;
  text-align: center; /* Center the content */
}

.modal-title-group h2 {
  margin: 0;
  font-size: 32px;
  line-height: 38px;
  color: #1c1e21;
}

.fb-logo-modal {
  color: #1877f2;
  font-size: 60px; /* Larger size for outside modal */
  font-weight: bold;
  letter-spacing: -2px;
  margin: 0 0 20px 0; /* Add space below logo */
  line-height: 1;
}

.modal-subtitle {
  font-size: 15px;
  line-height: 24px;
  color: #606770;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 28px;
  font-weight: bold;
  color: #606770;
  cursor: pointer;
  line-height: 1;
}

.close-btn:hover {
  color: #1c1e21;
}

.modal-body {
  padding: 16px;
}

.form-row {
  margin-bottom: 10px;
}

.split-row {
  display: flex;
  gap: 10px;
}

.split-row input {
  width: 50%;
}

.full-width {
  width: 100%;
}

.modal-body input {
  padding: 11px;
  background-color: #f5f6f7;
  border: 1px solid #ccd0d5;
  border-radius: 5px;
  font-size: 15px;
  line-height: 16px;
  color: #1c1e21;
}

.form-label {
  font-size: 12px;
  line-height: 20px;
  color: #606770;
  margin-bottom: 4px;
}

.icon-help {
  display: inline-block;
  width: 15px;
  height: 15px;
  background-color: #606770;
  color: white;
  border-radius: 50%;
  text-align: center;
  line-height: 15px;
  font-size: 11px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 4px;
}

.date-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.date-row select {
  flex-grow: 1;
  padding: 8px;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  background-color: #fff;
  font-size: 15px;
  color: #1c1e21;
}

.gender-row {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.gender-box {
  flex: 1;
  border: 1px solid #ccd0d5;
  border-radius: 4px;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  cursor: pointer;
}

.gender-label {
  font-size: 15px;
  color: #1c1e21;
}

.legal-text {
  font-size: 11px;
  color: #777;
  line-height: 15px;
  margin-bottom: 10px;
}

.legal-text a {
  color: #385898;
  text-decoration: none;
}

.legal-text a:hover {
  text-decoration: underline;
}

.submit-row {
  text-align: center;
  margin-top: 10px;
  margin-bottom: 10px;
}

.btn-signup {
  min-width: 194px;
  padding: 0 32px;
  height: 36px;
  background-color: #00a400;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  box-shadow: 0 1px 1px rgba(0, 0, 0, .1); /* Subtle shadow */
}

.btn-signup:hover {
  background-color: #008800; /* Darker green on hover */
}

.login-link-row {
  text-align: center;
  margin-top: 10px;
}

.modal-login-link {
  color: #1877f2;
  font-size: 16px;
  text-decoration: none;
}

.modal-login-link:hover {
  text-decoration: underline;
}

.identify-page {
  background-color: #e9ebee; /* Slightly darker gray for older identify look, or match var(--bg-color) */
  background-color: var(--bg-color);
}

.identify-header {
  height: 56px;
  background-color: #fff;
  box-shadow: 0 0 1px 1px rgba(0, 0, 0, .1);
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.header-inner {
  width: 980px;
  max-width: 100%;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fb-logo-small {
  color: var(--primary-blue);
  font-size: 30px;
  font-weight: bold;
  letter-spacing: -1px;
  cursor: pointer;
}

.btn-header-login {
  background-color: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.btn-header-login:hover {
  background-color: var(--primary-hover);
}

.identify-wrapper {
  flex-grow: 1;
  display: flex;
  justify-content: center;
  padding-top: 80px; /* Space from top */
}

.identify-card {
  width: 500px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
  overflow: hidden;
}

.identify-card h2 {
  font-size: 20px;
  padding: 16px;
  font-weight: bold;
  color: #162643;
}

.card-divider {
  border: 0;
  border-top: 1px solid #dddfe2;
  margin: 0;
}

.card-body {
  padding: 20px;
}

.card-body p {
  font-size: 17px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.card-body input {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  border: 1px solid #bdc7d8;
  border-radius: 4px;
}

.card-footer-actions {
  background-color: #fff; /* Some versions have gray footer, some white */
  padding: 16px;
  text-align: right;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-cancel {
  background-color: #e4e6eb;
  color: #4b4f56;
  padding: 10px 20px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  font-size: 15px;
}

.btn-cancel:hover {
  background-color: #d8dadf;
}

.btn-search {
  background-color: var(--primary-blue);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 15px;
  cursor: pointer;
}

.btn-search:hover {
  background-color: var(--primary-hover);
}

/* Footer (General) */
.main-footer {
  background: #fff;
  padding: 20px 0;
  margin-top: auto;
}

.footer-wrapper {
  width: 980px;
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
  color: #737373;
  font-size: 12px;
}

.lang-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.plus-box {
  background: #f5f6f7;
  border: 1px solid #ccd0d5;
  padding: 0 8px;
  cursor: pointer;
  font-weight: bold;
  color: #4b4f56;
}

.divider-footer {
  border-top: 1px solid #dddfe2;
  margin: 8px 0;
}

.links-list {
  line-height: 1.6;
  word-spacing: 10px; /* This doesn't really work for list of links, flex or inline-block is better */
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px; /* Gap horizontal */
}

.footer-link {
  color: #737373;
  text-decoration: none;
  font-size: 12px;
  display: inline-block; /* Helps with spacing */
}

.footer-link:hover {
  text-decoration: underline;
}

.ad-choice-icon {
  display: inline-block;
  transform: rotate(90deg); /* Triangle fix */
  font-size: 10px;
  margin-left: 2px;
}

.copyright {
  margin-top: 20px;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .content-container {
    flex-direction: column;
    align-items: center;
    width: 400px;
  }
  
  .left-col {
    width: 100%;
    text-align: center;
    padding-right: 0;
    margin-top: 0;
    margin-bottom: 40px;
  }
  
  .fb-logo {
    margin-left: 0;
  }
  
  .fb-tagline {
    width: auto;
    font-size: 24px;
  }
  
  .right-col {
    width: 100%;
  }

  .identify-card {
    width: 95%;
    margin: 0 auto;
  }
  
  .header-inner {
    width: 100%;
  }
}

@media (max-width: 500px) {
  .main-wrapper {
    padding-top: 20px;
  }
  .content-container {
    width: 100%;
  }
}
