/* Reset CSS */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background-color: #F5F6F8;
  color: #000;
  line-height: 1.5;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
  background-color: #F5F6F8;
}

.login-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 40%;
  padding: 55px 89px;
}

.logo {
  width: 124px;
  height: 124px;
  margin-bottom: 40px;
}

.title {
  font-size: 1.3rem;
  color: #1C38A6;
  font-weight: 800;
  line-height: normal;
  margin-bottom: 18px;
}

.subtitle {
  color: #333;
  font-size: 15px;
  margin-bottom: 10px;
}

.resident-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 30px;
}

.toggle-button {
  width: 145px;
  height: 46px;
  font-size: 12px;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  border: none;
  background-color: transparent;
  color: #353535;
  cursor: pointer;
}

.toggle-button.active {
  background-color: #1C38A6;
  color: #ECECEC;
}

/* User type selector */
.user-type-selector {
  display: flex;
  width: 399px;
  height: 46px;
  border: 1px solid #1C38A6;
  border-radius: 30px;
  overflow: hidden;
  margin-top: 42px;
}

.user-type-option {
  flex: 1;
  font-size: 1em;
  cursor: pointer;
  padding: 10px;
  text-align: center;
}

.user-type-option.selected {
  background-color: #1C38A6;
  color: white;
}

.login-form {
  display: flex;
  flex-direction: column;
}

.form-fields {
  display: flex;
  flex-direction: column;
  gap: 32px;
  margin-bottom: 27px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-label {
  color: black;
  font-size: 16px;
}

.input-container {
  display: flex;
  width: 100%;
  border: 1px solid #7C7C7C;
  padding: 16px;
  border-radius: 6px;
}

.form-input {
  width: 100%;
  font-size: 16px;
  color: darkblue;
  background-color: transparent;
  outline: none;
  border: none;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 27px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-container {
  width: 13px;
  height: 14px;
  background-color: #1C38A6;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
}

.hidden-checkbox {
  display: none;
}

.remember-text {
  color: #7F8B94;
  font-size: 1em;
  cursor: pointer;
}

.reset-password {
  color: #7F8B94;
  font-size: 1em;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.login-button {
  width: 100%;
  background-color: #1C38A6;
  color: #F5F6F8;
  font-size: 16px;
  font-weight: bold;
  margin-bottom: 27px;
  padding: 16px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-button:hover {
  background-color: #152c7e;
}

.signup-section {
  font-size: 14px;
  margin-bottom: 32px;
}

.signup-link {
  color: #00923F;
  font-weight: bold;
  cursor: pointer;
  border: none;
  background-color: transparent;
}

.legal-links {
  font-size: 12px;
  color: #1C38A6;
}

.legal-button {
  color: #1C38A6;
  border: none;
  background-color: transparent;
  cursor: pointer;
}

.legal-button:hover {
  text-decoration: underline;
}

.image-container {
  flex: 1;
  max-height: 1000px;
}

.main-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Media Queries */
@media (max-width: 1300px) {
  .login-container {
    padding: 40px;
    width: 100%;
    max-width: 50%;
  }
  .user-type-selector {
    width: 100%;
  }
  
}

@media (max-width: 1000px) {
  .login-container {
    padding: 40px;
    width: 100%;
    max-width: 60%;
  }
  .user-type-selector {
    width: 100%;
  }
  
}

@media (max-width: 780px) {
  .login-container {
    padding: 40px;
    width: 100%;
    max-width: 100%;
  }
  .user-type-selector {
    width: 100%;
  }
  
  .title {
    font-size: 32px;
  }
  
  .image-container {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 20px;
    width: 100%;
    max-width: 100%;
  }
  
  .title {
    font-size: 28px;
  }
}
