.page-title {
  padding: 4rem 0 2rem 0;
  position: relative;
  overflow: hidden;
}

.page-title::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
}

.page-title h1 {
  color: white;
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 1;
}

/* Breadcrumbs Styles */
.breadcrumbs {
  position: relative;
  z-index: 1;
}

.breadcrumbs ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumbs li {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.breadcrumbs li:not(:last-child)::after {
  content: "›";
  margin-left: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 600;
}

.breadcrumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.breadcrumbs a:hover {
  color: white;
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
}

.breadcrumbs .current {
  color: white;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

/* Login Section Styles */
.login-section {
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.login-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* Login Card */
.login-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 3rem 2.5rem;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  max-width: 800px;
  margin: 0 auto;
}

.login-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 35px 70px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.login-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #ff7849, #ff5722, #ff9800, #ff6f00);
  background-size: 300% 100%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* Header */
.login-header {
  margin-bottom: 2rem;
}

.login-title {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0.5rem;
}

.login-subtitle {
  color: #718096;
  font-size: 1rem;
  margin: 0;
}

/* Form Styles */
.login-form {
  width: 100%;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: flex;
  align-items: center;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.form-control:focus {
  outline: none;
  border-color: #ff7849;
  background: white;
  box-shadow: 0 0 0 3px rgba(255, 120, 73, 0.1);
  transform: translateY(-2px);
}

.form-control.is-invalid {
  border-color: #e53e3e;
  background: #fed7d7;
}

/* Error Messages */
.error-message {
  color: #e53e3e;
  font-size: 0.875rem;
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #fed7d7;
  border-radius: 8px;
  border-left: 4px solid #e53e3e;
}

/* Form Options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.remember-me {
  display: flex;
  align-items: center;
}

.form-check-input {
  margin-right: 0.5rem;
  accent-color: #ff7849;
}

.form-check-label {
  color: #4a5568;
  font-size: 0.9rem;
  cursor: pointer;
}

.forgot-password {
  color: #ff7849;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #ff5722;
  text-decoration: underline;
}

/* Submit Button */
.btn-login {
  width: 100%;
  padding: 1rem 2rem;
  background: linear-gradient(135deg, #ff7849, #ff5722);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s ease;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 35px rgba(255, 120, 73, 0.4);
}

.btn-login:active {
  transform: translateY(0);
}

.btn-icon {
  transition: transform 0.3s ease;
}

.btn-login:hover .btn-icon {
  transform: translateX(4px);
}

/* Divider */
.divider {
  text-align: center;
  margin: 2rem 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: #e2e8f0;
}

.divider span {
  padding: 0 1rem;
  color: #a0aec0;
  font-weight: 500;
}

/* Register Link */
.register-link p {
  color: #4a5568;
  margin: 0;
}

.register-btn {
  color: #ff7849;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.register-btn:hover {
  color: #ff5722;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 768px) {
  .page-title {
    padding: 3rem 0 1.5rem 0;
  }

  .page-title h1 {
    font-size: 2rem;
  }

  .page-title .container {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 1rem;
  }

  .breadcrumbs {
    margin-top: 0.5rem;
  }

  .login-card {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .login-title {
    font-size: 1.75rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .page-title {
    padding: 2rem 0 1rem 0;
  }

  .page-title h1 {
    font-size: 1.75rem;
  }

  .breadcrumbs ol {
    flex-wrap: wrap;
  }

  .breadcrumbs li {
    font-size: 0.8rem;
  }

  .login-section {
    min-height: 100vh;
    padding: 1rem 0;
  }

  .login-card {
    margin: 0.5rem;
    padding: 1.5rem 1rem;
  }

  .login-title {
    font-size: 1.5rem;
  }
}

/* Animation for form elements */
.form-group {
  animation: slideInUp 0.6s ease forwards;
  opacity: 0;
  transform: translateY(20px);
}

.form-group:nth-child(1) {
  animation-delay: 0.1s;
}
.form-group:nth-child(2) {
  animation-delay: 0.2s;
}
.form-options {
  animation-delay: 0.3s;
}
.btn-login {
  animation-delay: 0.4s;
}

@keyframes slideInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Loading state for button */
.btn-login.loading {
  pointer-events: none;
  opacity: 0.7;
}

.btn-login.loading .btn-text::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  margin-left: 0.5rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
