/* 
========================================
  1) Base Styles (Mobile First)
========================================
*/

/* Container for centering the form on mobile */
.center-container {
  max-width: 350px;
}

.login-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 50%;
}

@media (max-width: 560px) {
  .login-container {
      margin-top: 30%;
  }
}

@media (max-width: 383px) {
  .login-container {
      margin-top: 60%;
  }
}

.register-title-header {
  color: #000;
  font-size: 1.5em;
  text-align: center;
  margin-bottom: 15px;
}

/* Register container/icon defaults */
.register-container {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

.register-icon {
  width: 20px;
  height: auto;
  display: inline-block;
}

#login-form {
  margin-bottom: 20px;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  width: 100%;
  max-width: 100%;
  margin-bottom: 10px;
}

.form-group label {
  margin-bottom: 5px;
  font-weight: 500;
  color: #000;
}

.login-form input {
  width: 93%;
  padding: 12px;
  border-radius: 8px;
  color: #000;
}

.input-container {
  position: relative;
}

.input-container input {
  padding: 12px;
  border-radius: 8px;
  color: #000;
}

@media screen and (max-width: 768px) {
  input, select, textarea {
      font-size: 16px; /* iOS minimum font size to prevent zoom */
  }
}

.input-container button {
  position: absolute;
  left: 2px;
  margin-top: -42px;
  border: none;
  background: none;
  cursor: pointer;
  height: 40px;
  width: 40px;
}

/* Error message */
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
}

.bottom-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between; 
  gap: 10px;
  margin-top: 10px;
  direction: rtl; /* For right-to-left layout if required */
}

.switch-remember-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Switch styles (toggle) */
.switch {
  position: relative;
  display: inline-block;
  width: 45px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #D3D9E1;
  transition: 0.4s;
  border-radius: 20px;
  width: 45px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  right: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .slider:before {
  background-color: #6EAC18;
  transform: translateX(-180%);
}

.remember-me-label {
  color: #000;
}

.forgot-password-label {
  color: #E94D8C;
  text-decoration: none;
  font-weight: 550;
}

#submit-btn {
  margin: 0 auto;
  width: 100%;
  padding: 12px;
  background: #061A9A;
  border-radius: 30px;
  color: #fff;
  font-size: 1em;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-align: center;
  position: relative;
  transition: background 0.3s, transform 0.1s;
  margin-top: 30px;
  border: none;
}

#submit-btn:hover {
  background: #E94D8C;
}

#submit-btn:active {
  transform: scale(0.98);
  background: #0b6623;
}

.or-separator {
  text-align: center;
  margin: 10px 0;
  font-size: 1em;
  color: #000;
}

.social-buttons {
  display: flex;
  flex-direction: row;
  gap: 15px;
}

.google-btn {
  flex: 1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1em;
  font-weight: 700;
  padding: 10px;
  width: 115%;
  background-color: #fff;
  color: #000;
}

.facebook-btn {
  flex: 1;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 1em;
  font-weight: 700;
  padding: 10px;
  width: 96%;
  background-color: #0866ff;
  color: #fff;
}

.socials-spacer {
  width: 100%;
  height: 10px;
}

.social-buttons img {
  width: 25px;
  height: 25px;
}

/* 
========================================
2) Tablet (481px – 768px)
========================================
*/
@media (min-width: 481px) and (max-width: 768px) {
  .login-container {
      padding: 0 40px;
  }

  .register-title-header {
      font-size: 1.75em;
      margin-bottom: 15px;
      text-align: center;
  }

  #register-form {
      width: 100%;
      margin-bottom: 25px;
  }

  .form-group input {
      width: 100%;
  }

  .form-group.bottom-row {
      flex-direction: row;
      align-items: center;
      justify-content: space-between;
      margin-top: 40px;
      margin-bottom: 10px;
  }

  .remember-me-label {
      flex:1;
  }

  .forgot-password-label {
      margin-right: 0;
      align-self: flex-start;
  }

  #submit-btn {
      width: 100%;
      padding: 14px;
      font-size: 1.1em;
  }

  .social-buttons {
      flex-direction: row;
      gap: 10px;
  }

  .social-buttons .google-btn,
  .social-buttons .facebook-btn {
      font-size: 1.1em;
  }

  .or-separator {
      font-size: 1.1em;
  }
}

/*
========================================
3) Desktop & Larger (769px+)
========================================
*/
@media (min-width: 769px) {
  .login-container {
      position: relative;
  }

  .register-title-header {
      font-size: 2em;
      margin-bottom: 20px;
  }

  #register-form {
      margin-bottom: 15px;
  }

  .or-separator {
      font-size: 1.2em;
      margin: 20px 0;
  }

  .social-buttons .google-btn,
  .social-buttons .facebook-btn {
      font-size: 1.3em;
  }
}

/* 
========================================
4) NEW: Register Button Styles
========================================
*/
.register-container {
  overflow: visible;
}
/* Make the "Register" link look like a button */
.register-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;                 /* Space between icon and text */
  padding: 5px 10px;
  border-radius: 25px;
  background-color: #fff;   /* Start with white background */
  color: #061A9A;           /* Text color */
  text-decoration: none;    /* Remove underlines */
  font-weight: 700;
  transition: 
      background-color 0.3s ease, 
      color 0.3s ease, 
      filter 0.3s ease;
  border: 2px solid #061A9A; /* Optional border to match color */
}

.register-btn:hover {
  background-color: #061A9A; /* On hover, switch background to #061A9A */
  color: #fff;               /* Text color to white */
}

/* If you want the icon color to invert on hover, use a simple filter approach */
.register-btn .register-icon {
  transition: filter 0.3s ease;
}

.register-btn:hover .register-icon {
  filter: brightness(0) invert(1);
}
