:root {
  --primary-color: #d4af37;
  --secondary-color: #333;
  --accent-color: #8b0000;
  --light-color: #f8f9fa;
  --dark-color: #212529;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f5f5f5;
  color: var(--dark-color);
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.auth-container {
  width: 100%;
  max-width: 450px;
  padding: 2.5rem;
  background: white;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
  position: relative; /* Added for close button positioning */
}

.auth-header {
  text-align: center;
  margin-bottom: 2.5rem;
  position: relative; /* Added for close button positioning */
  padding-top: 10px; /* Added space for close button */
}

.auth-header img {
  height: 80px;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease;
}

.auth-header img:hover {
  transform: scale(1.05);
}

.auth-header h2 {
  color: var(--accent-color);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.close-btn:hover {
  color: var(--accent-color);
  background-color: rgba(0,0,0,0.05);
}

.form-control {
  padding: 14px 18px;
  border-radius: 12px;
  margin-bottom: 1.25rem;
  border: 1px solid #e0e0e0;
  font-size: 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.form-control::placeholder {
  color: #999;
}

.btn-primary {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
  padding: 12px;
  font-weight: 500;
  width: 100%;
  border-radius: 12px;
  font-size: 16px;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #6d0000;
  border-color: #6d0000;
  transform: translateY(-2px);
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
  transition: color 0.2s ease;
}

.password-toggle:hover {
  color: var(--accent-color);
}

.password-input-group {
  position: relative;
}

.auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  color: #666;
  font-size: 15px;
}

.auth-footer a {
  color: var(--accent-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.auth-footer a:hover {
  text-decoration: underline;
  color: #6d0000;
}

.error-message {
  color: #dc3545;
  margin: 1rem 0;
  text-align: center;
  background: rgba(220, 53, 69, 0.1);
  padding: 10px;
  border-radius: 8px;
  font-size: 14px;
}

.remember-forgot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.form-check-input {
  border-radius: 4px;
  border: 1px solid #e0e0e0;
  cursor: pointer;
}

.form-check-input:checked {
  background-color: var(--accent-color);
  border-color: var(--accent-color);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  color: #555;
}

@media (max-width: 576px) {
  .auth-container {
      padding: 2rem 1.5rem;
      border-radius: 12px;
  }
  
  body {
      padding: 15px;
  }
  
  .auth-header img {
      height: 70px;
  }

  .close-btn {
      top: 5px;
      right: 5px;
      font-size: 1.3rem;
  }
}
.auth-container {
  max-width: 400px;
  margin: 50px auto;
  padding: 20px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 20px;
}

.auth-header img {
  max-width: 100px;
  margin-bottom: 10px;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.error-message {
  color: #dc3545;
  margin-bottom: 15px;
  text-align: center;
}

.success-message {
  color: #28a745;
  margin-bottom: 15px;
  text-align: center;
}

.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
}

.form-control:focused {
  border-color: #007bff;
  box-shadow: 0 0 5px rgba(0,123,255,0.5);
}

.auth-footer {
  text-align: center;
  margin-top: 20px;
}

.auth-footer a {
  color: #007bff;
  text-decoration: none;
}

.auth-footer a:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 10px;
  font-size: 1rem;
}