/* ===== BASE STYLES ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #fff;
  min-height: 100vh;
  color: #374151;
  line-height: 1.6;
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
}

/* ===== HEADER STYLES ===== */
.fixed-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: transform 0.3s ease;
  background-color: #991b1b;
}

.header-content {
  display: flex;
  align-items: center;
  padding: 25px;
  max-width: 1200px;
  max-height: 112px;
  margin: 0 auto;
}

.logo-container {
  display: flex;
  align-items: center;
  margin-left: 0;
}

.logo {

    width: 70px;
    height: 70px;

}

.title {
  color: white;
  font-size: 1.3rem;
  font-weight: bold;
  margin: 32px;
  flex: 1;
  /* Remove the white underline */
  border-bottom: none;
  text-decoration: none;
}

/* ===== LOGIN CONTAINER ===== */
.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 80px 20px 20px;
}

.login-card {
  width: 100%;
  max-width: 450px;
  margin: 1rem auto;
  position: relative;
}

.card {
  background-color: rgb(255, 255, 255);
  border-radius: 12px;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.1);
  padding: 2rem;
  overflow: hidden;
}

.card-header {
  text-align: center;
  margin-bottom: 1.5rem;
  color: #991b1b;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.card-header i {
  color: #991b1b;
  font-size: 1.5rem;
}

/* ===== FORM STYLES ===== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: #4b5563;
}

.icon-wrapper {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  margin-right: 8px;
  color: #991b1b;
}

.form-input {
  display: block;
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:hover {
  border-color: #991b1b;
}

.form-input:focus {
  outline: none;
  border-color: #991b1b;
  box-shadow: 0 0 0 3px rgba(153, 27, 27, 0.1);
}

/* ===== CHECKBOX STYLES ===== */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.checkbox-group {
  display: flex;
  align-items: center;
}

.checkbox {
  appearance: none;
  width: 16px;
  height: 16px;
  border: 2px solid #d1d5db;
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  cursor: pointer;
}

.checkbox:checked {
  background-color: #991b1b;
  border-color: #991b1b;
}

.checkbox:checked::after {
  content: '✓';
  position: absolute;
  color: white;
  font-size: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.checkbox-label {
  font-size: 0.875rem;
  color: #4b5563;
  cursor: pointer;
}

.forgot-link {
  font-size: 0.875rem;
  color: #991b1b;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  text-decoration: underline;
  color: #7f1d1d;
}

/* ===== PASSWORD TOGGLE STYLES ===== */
.password-input-container {
  position: relative;
}

.toggle-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 5px;
}

.toggle-btn:hover {
  color: #991b1b;
}

.toggle-btn:focus {
  outline: none;
}

/* Add this to your CSS file */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
}

.password-toggle:hover {
    color: #a61c1c;
}

/* ===== BUTTON STYLES ===== */
.submit-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.75rem 1rem;
  background-color: #991b1b;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.submit-btn:hover {
  background-color: #7f1d1d;
  transform: translateY(-2px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.submit-btn:active {
  transform: translateY(0);
}

/* ===== FOOTER STYLES ===== */
.footer {
  background-color: #991b1b;
  color: white;
  text-align: center;
  padding: 1rem;
  position: fixed;
  bottom: 0;
  width: 100%;
}

.footer p {
  margin: 0;
  font-size: 0.875rem;
}

/* ===== TOAST NOTIFICATION STYLES ===== */
.toast-container {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
  max-width: 400px;
}

.toast {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  margin-bottom: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(20px);
  transition: all 0.3s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(0);
}

.toast.hide {
  opacity: 0;
  transform: translateX(20px);
}

.toast-content {
  display: flex;
  align-items: center;
  padding: 15px;
}

.toast i {
  margin-right: 10px;
  font-size: 1.5rem;
}

.toast-message {
  flex-grow: 1;
}

.toast-progress {
  height: 4px;
  background-color: rgba(0, 0, 0, 0.1);
  width: 100%;
  position: relative;
}

.toast-progress::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  background-color: currentColor;
  animation: toast-progress 4s linear forwards;
}

@keyframes toast-progress {
  from { width: 100%; }
  to { width: 0%; }
}

.toast.info i {
  color: #3b82f6;
}

.toast.success i {
  color: #10b981;
}

.toast.warning i {
  color: #f59e0b;
}

.toast.error i {
  color: #ef4444;
}

.toast.error {
  border-left: 4px solid #ef4444;
}

.toast.success {
  border-left: 4px solid #10b981;
}

.toast.warning {
  border-left: 4px solid #f59e0b;
}

.toast.info {
  border-left: 4px solid #3b82f6;
}

.toast-close {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0 15px;
  font-size: 1rem;
}

.toast-close:hover {
  color: #ef4444;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive design */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    text-align: left;
    padding: 15px;
    max-height: none;
  }

  .logo-container {
    margin-right: 0;
    margin-bottom: 0;
    flex: 1;
  }

  .logo {
    width: 45px;
    height: 45px;
  }
  
  .title {
    font-size: 0.85rem;
    margin: 0 10px;
  }

  .login-container {
    padding: 90px 15px 80px;
  }

  .login-card {
    max-width: 100%;
  }

  .card {
    padding: 1.5rem;
  }

  .home-link {
    position: static;
    margin-left: auto;
    padding: 6px 10px;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  .header-content {
    padding: 12px 10px;
  }

  .logo {
    width: 35px;
    height: 35px;
  }

  .title {
    font-size: 0.7rem;
    margin: 0 8px;
  }

  .card {
    padding: 1.25rem;
    border-radius: 8px;
  }

  .card-header {
    font-size: 1.2rem;
  }

  .submit-btn {
    padding: 0.65rem 0.75rem;
  }

  .footer {
    padding: 8px;
    font-size: 0.75rem;
  }
}
