/* ========== Global Reset ========== */
html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #f4f5f7;
  font-family: 'Segoe UI', sans-serif;
}

/* ========== Centering Container ========== */
.auth-container {
  height: calc(100vh - 56px);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ========== Card Fade-In ========== */
.auth-card {
  background: #fff;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  width: 100%;
  max-width: 400px;
  opacity: 0;
  transform: translateY(20px);
  animation: slideFadeIn .4s forwards ease-out;
}
@keyframes slideFadeIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ========== Heading ========== */
.auth-card h2 {
  margin-bottom: 1.5rem;
  text-align: center;
  font-weight: 600;
}

/* ========== Form Groups & Labels Above Inputs ========== */
.form-group {
  margin-bottom: 1rem;
}
.auth-card label {
  display: block;
  margin-bottom: .5rem;
  font-weight: 500;
}

/* ========== Input & Icons ========== */
.input-icon {
  position: relative;
}
.input-icon i {
  position: absolute;
  top: 50%;
  left: .75rem;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 1.1rem;
}
.auth-card input {
  width: 100%;
  padding: .75rem 1rem;
  padding-left: 2.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  transition: border-color .2s;
}
.auth-card input:focus {
  outline: none;
  border-color: #e63946;
}

/* ========== Show/Hide Password Toggle ========== */
.toggle-password {
  position: absolute;
  top: 50%;
  right: .75rem;
  transform: translateY(-50%);
  cursor: pointer;
  color: #777;
}
.toggle-password:hover {
  color: #e63946;
}

/* (Removed .form-check) */

/* Center “Forgot password?” */
.text-center a {
  color: #e63946;
  text-decoration: none;
}
.text-center a:hover {
  text-decoration: underline;
}

/* ========== Submit Button & Spinner ========== */
.auth-card button {
  width: 100%;
  padding: .75rem;
  background: #e63946;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
  position: relative;
}
.auth-card button:hover {
  background: #d62828;
}
.auth-card .spinner-border {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1rem;
  height: 1rem;
  margin: -0.5rem 0 0 -0.5rem;
  display: none;
}

/* ========== Switch-Link (“Sign Up” / “Login”) Styling ========== */
.switch-link {
  text-align: center;
  margin-top: 1rem;
}
.switch-link a {
  background: #e63946;
  color: white;
  padding: .5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
}
.switch-link a:hover {
  background: #d62828;
}
