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

body {
  display: flex;
  flex-direction: column;
  /* Stack content and footer */
  align-items: center;
  /* Center horizontally */
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  /* Explicit light bg to match typical clone look */
}

.container {
  display: flex;
  margin-top: 40px;
  gap: 30px;
  justify-content: center;
  flex-grow: 1;
  /* Push footer down if content is short */
}

/* Adjust top margin or centering if needed */
/* ... existing styles ... */

.instaTextLogo {
  width: 174px;
  margin-bottom: 20px;
}

.login-box {
  width: 350px;
  border: 1px solid #dbdbdb;
  padding: 30px;
  background-color: #fff;
  /* Ensure box is white on potentially gray bg */
  text-align: center;
  margin-bottom: 10px;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 10px;
  border: 1px solid #dbdbdb;
  border-radius: 5px;
  background-color: #fafafa;
  font-size: 14px;
}

.login-btn {
  background-color: #3897f0;
  color: #fff;
  border: none;
  padding: 10px;
  font-weight: bold;
  width: 100%;
  border-radius: 5px;
  cursor: pointer;
}

.divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0;
}

.line {
  flex-grow: 1;
  height: 1px;
  background-color: #dbdbdb;
}

.divider p {
  margin: 0 10px;
  font-size: 14px;
  color: #8e8e8e;
}

.login-with-facebook {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}

.fb-img {
  width: 20px;
  height: 20px;
}

.facebook-login {
  color: #385185;
  text-decoration: none;
  font-weight: bold;
  font-size: 14px;
}

.forgot-password {
  color: #00376b;
  /* Use safer blue/dark */
  font-size: 12px;
  text-decoration: none;
}

.signup-box {
  border: 1px solid #dbdbdb;
  padding: 20px;
  background-color: #fff;
  text-align: center;
  width: 350px;
}

.signup-box a {
  color: #3897f0;
  text-decoration: none;
  font-weight: bold;
}

.signup-box p {
  font-size: 14px;
}

.download-section {
  text-align: center;
  margin-top: 20px;
}

.download-section p {
  margin-bottom: 20px;
}

.app-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-btn {
  height: 40px;
  margin: 0 5px;
}

/* Footer Styles */
.footer {
  padding: 50px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #8e8e8e;
  width: 100%;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  max-width: 800px;
  padding: 0 16px;
}

.footer-links a {
  text-decoration: none;
  color: #8e8e8e;
}

.footer-copyright {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-copyright select {
  background: none;
  border: none;
  color: #8e8e8e;
  font-size: 12px;
  cursor: pointer;
}