/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f5f5f5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: #337ab7;
  text-decoration: none;
}

a:hover {
  color: #23527c;
  text-decoration: underline;
}

/* ===== Layout Container ===== */
.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

.row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

/* ===== Page Header / Logo ===== */
.page-header {
  text-align: center;
  margin-top: 48px;
  margin-bottom: 24px;
  border-bottom: none;
}

.login-hear-link a {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 3px;
  color: #5cb8a5;
  text-decoration: none;
  text-transform: uppercase;
}

.login-hear-link a:hover {
  color: #4a9e8d;
  text-decoration: none;
}

/* ===== Form Area ===== */
.form-wrapper {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 15px;
}

.form-group {
  margin-bottom: 16px;
}

.form-control {
  display: block;
  width: 100%;
  height: 46px;
  padding: 10px 14px;
  font-size: 15px;
  font-family: inherit;
  color: #555;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control::placeholder {
  color: #999;
}

.form-control:focus {
  border-color: #5cb8a5;
  box-shadow: 0 0 0 3px rgba(92, 184, 165, 0.15);
}

/* ===== Log In Button ===== */
.btn-custom {
  display: block;
  width: 100%;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  color: #fff;
  background-color: #5cb8a5;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, transform 0.1s ease;
  margin-top: 8px;
}

.btn-custom:hover {
  background-color: #4a9e8d;
}

.btn-custom:active {
  transform: scale(0.99);
}

/* ===== "or" Divider ===== */
.middle-line {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 24px 0;
  color: #888;
  font-size: 14px;
}

.middle-line::before,
.middle-line::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #ccc;
}

.middle-line span {
  padding: 0 16px;
}

/* ===== Facebook Button ===== */
.fb-connect-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  padding: 12px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background-color: #3b5998;
  border-radius: 4px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.fb-connect-login::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M22 12c0-5.523-4.477-10-10-10S2 6.477 2 12c0 4.991 3.657 9.128 8.438 9.878v-6.987h-2.54V12h2.54V9.797c0-2.506 1.492-3.89 3.777-3.89 1.093 0 2.238.195 2.238.195v2.46h-1.26c-1.243 0-1.63.771-1.63 1.563V12h2.773l-.443 2.89h-2.33v6.988C18.343 21.128 22 16.991 22 12z'/%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
}

.fb-connect-login:hover {
  background-color: #2d4373;
  color: #fff;
  text-decoration: none;
}

/* ===== Links Section ===== */
.links-section {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 32px;
  font-size: 14px;
}

.links-section a {
  color: #337ab7;
}

/* ===== Support Section ===== */
.support-section {
  text-align: center;
  margin-top: 24px;
  margin-bottom: 32px;
  font-size: 14px;
  color: #333;
}

.support-section a {
  color: #337ab7;
}

/* ===== Responsive ===== */
@media (max-width: 576px) {
  .page-header {
    margin-top: 32px;
  }

  .login-hear-link a {
    font-size: 22px;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .fb-connect-login {
    max-width: 100%;
  }
}
