/**
 * iHRM Auth Pages — login, register, password reset
 */
.login-container {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f) 0%, var(--ihrm-primary-light, #2d4f7c) 50%, var(--ihrm-accent, #2563eb) 100%);
  border: none;
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  padding: 2rem 1rem;
  margin: 1rem 0;
}

.login-card {
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.15));
  overflow: hidden;
  padding: 2.5rem;
  transition: all 0.3s ease;
  border-top: 4px solid var(--ihrm-accent, #2563eb);
  animation: ihrm-fade-in-up 0.5s ease-out forwards;
}

.login-card-header {
  text-align: center;
  margin-bottom: 2rem;
  position: relative;
}

.login-card-header::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-accent, #2563eb));
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

.login-card .card-title {
  color: var(--ihrm-primary, #1e3a5f);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.login-card-body {
  padding: 0.5rem;
}

.login-card .form-label {
  color: var(--ihrm-text, #1e293b);
  font-weight: 600;
  font-size: 0.9rem;
}

.input-group-seamless {
  position: relative;
  box-shadow: var(--ihrm-shadow, 0 1px 3px rgba(0,0,0,0.06));
  border-radius: var(--ihrm-radius, 0.5rem);
  transition: box-shadow 0.3s ease;
}

.input-group-seamless:focus-within {
  box-shadow: 0 0 0 3px var(--ihrm-accent-soft, rgba(37, 99, 235, 0.15));
}

.input-group-seamless .input-group-text {
  background: transparent;
  border: none;
  color: var(--ihrm-text-muted, #64748b);
  padding-left: 15px;
}

.input-group-seamless .input-group-text i {
  color: var(--ihrm-accent, #2563eb);
}

.input-group-seamless .form-control {
  border: 1px solid var(--ihrm-border, rgba(0,0,0,0.1));
  border-radius: var(--ihrm-radius, 0.5rem);
  padding: 0.75rem 1rem;
  transition: all 0.2s;
}

.input-group-seamless .form-control:focus {
  box-shadow: none;
  border-color: var(--ihrm-accent, #2563eb);
}

.toggle-password {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  color: var(--ihrm-text-muted, #64748b);
  z-index: 10;
  background: transparent;
  border: none;
  padding: 0 15px;
}

.toggle-password:hover {
  color: var(--ihrm-accent, #2563eb);
}

.forgot-password-link {
  color: var(--ihrm-accent, #2563eb);
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-password-link:hover {
  color: var(--ihrm-primary, #1e3a5f);
  text-decoration: underline;
}

.login-btn {
  padding: 0.75rem;
  font-weight: 600;
  background: linear-gradient(90deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-accent, #2563eb));
  border: none;
  border-radius: var(--ihrm-radius, 0.5rem);
  transition: all 0.3s;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--ihrm-shadow-md);
  filter: brightness(1.05);
}

.register-container {
  background: linear-gradient(135deg, var(--ihrm-primary, #1e3a5f) 0%, var(--ihrm-accent, #2563eb) 100%);
  border: none;
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  padding: 2rem 1rem;
  margin: 1rem 0;
}

.register-card {
  background-color: rgba(255, 255, 255, 0.97);
  border-radius: var(--ihrm-radius-lg, 0.75rem);
  box-shadow: var(--ihrm-shadow-lg, 0 8px 24px rgba(15, 23, 42, 0.15));
  overflow: hidden;
  padding: 2.5rem;
  transition: all 0.3s ease;
  border-top: 4px solid var(--ihrm-accent, #2563eb);
  animation: ihrm-fade-in-up 0.5s ease-out forwards;
}

.register-card-header {
  text-align: center;
  margin-bottom: 2rem;
}

.register-card-header::after {
  content: "";
  display: block;
  height: 3px;
  width: 60px;
  background: linear-gradient(90deg, var(--ihrm-primary, #1e3a5f), var(--ihrm-accent, #2563eb));
  margin: 0.8rem auto 0;
  border-radius: 3px;
}

@media (max-width: 767.98px) {
  .login-card {
    border-radius: 0;
    padding: 1.5rem;
    box-shadow: none;
  }
  .login-container {
    padding: 0;
    margin: 0;
    border-radius: 0;
  }
}
