/* ===== Password Field with Font Awesome icon ===== */
.password-container {
  position: relative;
  width: 100%;
  max-width: 340px;
}

.password-container input {
  padding-right: 40px;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
  z-index: 2;
  opacity: 0.7;
  transition: opacity 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  opacity: 1;
}

.toggle-password::before {
  content: "\f070"; /* Font Awesome eye-slash icon */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  color: var(--accent-color);
  font-size: 16px;
  opacity: 0.8;
}

.toggle-password.visible::before {
  content: "\f06e"; /* Font Awesome eye icon */
}

/* ===== Remember Me & Forgot Password ===== */
.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 340px;
  margin: var(--spacing-xs) 0 var(--spacing-xs);
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  flex-wrap: wrap;
}

.remember-forgot label {
  display: flex;
  align-items: center;
  margin-right: var(--spacing-sm);
  cursor: pointer;
  transition: color 0.2s ease;
  user-select: none;
}

.remember-forgot label:hover {
  color: var(--text-light);
}

.remember-forgot input[type="checkbox"] {
  margin-right: 8px;
  position: relative;
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--primary-color);
}

.remember-forgot a {
  position: relative;
}

.remember-forgot a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.remember-forgot a:hover::after {
  width: 100%;
}

/* Remove extra duplicate hover rules for the Register link; use only the underline effect */
.register-text a {
  position: relative;
  display: inline-block;
  transition: none; /* Remove size adjustments */
}

.register-text a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: var(--accent-color);
  transition: width 0.3s ease;
}

.register-text a:hover::after {
  width: 100%;
}

/* Login Button Enhancement */
form button[type="submit"] {
  height: 2.6rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: var(--spacing-xs);
}

form button[type="submit"]:hover:not([disabled]) {
  background: var(--gradient-button-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(216, 27, 96, 0.35);
}

form button[type="submit"]:active:not([disabled]) {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ===== Social Login ===== */
.social-login {
  margin-top: var(--spacing-sm);
  width: 100%;
  max-width: 340px;
}

.social-login h2 {
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  font-weight: normal;
  text-align: center;
  position: relative;
  width: 100%;
  margin: var(--spacing-sm) auto var(--spacing-xs);
  display: flex;
  align-items: center;
  justify-content: center;
}

.social-login h2::before,
.social-login h2::after {
  content: '';
  flex-grow: 1;
  height: 1px;
  background: var(--border-color);
  margin: 0 var(--spacing-sm);
}

.social-icons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  color: var(--text-light);
}

.social-icon:hover {
  opacity: 1;
  transform: translateY(-3px);
  background-color: rgba(255, 64, 129, 0.15);
  border-color: rgba(255, 64, 129, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Replace images with Font Awesome social icons */
.social-icon::before {
  font-family: "Font Awesome 5 Brands";
  font-size: 18px;
}

.social-icon.google::before {
  content: "\f1a0"; /* Font Awesome Google icon */
}

.social-icon.facebook::before {
  content: "\f39e"; /* Font Awesome Facebook icon */
}

.social-icon.microsoft::before {
  content: "\f17a"; /* Font Awesome Windows icon */
}

.social-icon.twitter::before {
  content: "\f099"; /* Font Awesome Twitter icon */
}

.social-icon.apple::before {
  content: "\f179"; /* Font Awesome Apple icon */
}

/* Disabled social icons */
.social-icon.disabled {
  opacity: 0.5;
  cursor: not-allowed;
  filter: grayscale(70%);
  position: relative;
}

.social-icon.disabled:hover {
  opacity: 0.5;
  transform: none;
  background-color: transparent;
  box-shadow: none;
  border-color: var(--border-color);
}

.social-icon.disabled::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: 50%;
}

/* Tooltip for disabled social icons */
.social-icon.disabled::before {
  content: attr(title);
  position: absolute;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.social-icon.disabled:hover::before {
  opacity: 1;
  visibility: visible;
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .remember-forgot {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .remember-forgot a {
    margin-top: var(--spacing-xs);
    align-self: flex-end;
  }
  
  .input-container input,
  form button[type="submit"] {
    height: 2.5rem; /* Keep them consistent in mobile view too */
  }
}

/* ===== Login Form Styling ===== */
.input-container {
  margin-bottom: var(--spacing-xs);
}

/* Remove duplicate/conflicting input field rules if present.
   If you have a block like the one below in your login.css, 
   comment it out so that base_auth.css rules take effect. */

/*
.input-container input {
    padding: var(--spacing-xs) var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--input-radius);
    background-color: rgba(255, 255, 255, 0.06);
    color: var(--text-light);
    font-size: var(--font-size-sm);
    width: 100%;
    max-width: 340px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    height: 2.6rem;
}

.input-container input::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

.input-container input:focus {
    outline: none;
    border-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), inset 0 1px 3px rgba(0,0,0,0.1);
}
*/

.input-container input {
  width: 100%;
  height: 2.6rem; /* Updated to match button height */
  transition: all 0.3s ease;
  border-width: 1px;
}

.input-container input:focus {
  outline: none;
  border-color: #7602b9 !important;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.034) !important;
}
