/* Custom styles following AdminLTE patterns */
.login-page {
  background: linear-gradient(135deg, #002140 0%, #319dff 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-box {
  width: 900px;
  max-width: 90%;
}

.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.card {
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  border: none;
  overflow: hidden;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.98);
}

.login-card-wrapper {
  display: flex;
  min-height: 500px;
}

.login-card-left {
  flex: 1;
  background: linear-gradient(135deg, #002140 0%, #319dff 100%);
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  position: relative;
}

.login-card-left::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  animation: rotate 30s linear infinite;
}

@keyframes rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.brand-container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.brand-logo {
  width: 250px;
  height: 250px;
  margin: 0 auto 20px;
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-text {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 15px;
  letter-spacing: -0.5px;
  background: linear-gradient(135deg, #ffd700, #ffa500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.brand-subtitle {
  font-size: 16px;
  opacity: 0.9;
  line-height: 1.5;
  max-width: 280px;
}

.features-list {
  position: relative;
  z-index: 2;
}

.feature-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
  font-size: 14px;
  opacity: 0.9;
}

.feature-item i {
  margin-right: 12px;
  font-size: 16px;
  color: #fff;
}

.login-card-body {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-box-msg {
  text-align: center;
  margin-bottom: 40px;
}

.login-title {
  font-size: 28px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 10px;
}

.login-subtitle {
  color: #6b7280;
  font-size: 15px;
}

/* Override AdminLTE input group styles */
.input-group {
  margin-bottom: 25px;
}

.form-control {
  padding: 16px 20px;
  border: 2px solid #e5e7eb;
  border-radius: 12px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: #f9fafb;
  height: auto;
}

.form-control:focus {
  border-color: #4f46e5;
  background: white;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.input-group-text {
  background: transparent;
  border: 2px solid #e5e7eb;
  border-left: none;
  border-radius: 0 12px 12px 0;
  color: #9ca3af;
  transition: all 0.3s ease;
}

.input-group:focus-within .input-group-text {
  border-color: #4f46e5;
  color: #4f46e5;
}

.forgot-link {
  display: block;
  text-align: right;
  color: #4f46e5;
  text-decoration: none;
  font-size: 14px;
  margin-top: 10px;
  transition: color 0.3s ease;
}

.forgot-link:hover {
  color: #3730a3;
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, #002140 0%, #319dff 100%);
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 20px;
}

.btn-primary::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;
}

.btn-primary:hover::before {
  left: 100%;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 33, 64, 0.3);
  background: linear-gradient(135deg, #002140 0%, #319dff 100%);
  border-color: transparent;
}

.security-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 30px;
  padding: 12px;
  background: #f0fdf4;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
}

.security-badge i {
  color: #16a34a;
  margin-right: 8px;
}

.security-badge span {
  color: #15803d;
  font-size: 12px;
  font-weight: 500;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}

.indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .login-page {
    justify-content: flex-start;
    align-items: flex-start;
    background: #ffffff !important;
  }

  .login-box {
    max-width: 100%;
  }

  .login-box,
  .register-box {
    margin-top: 0 !important;
  }

  .login-card-wrapper {
    flex-direction: column;
    height: 100%;
    display: flex;
  }

  .card {
    border-radius: 0;
    border: none;
    box-shadow: none;
    background: transparent !important;
  }

  .login-card-left {
    padding: 40px 30px;
    min-height: 300px;
  }

  .login-card-body {
    padding: 40px 30px;
  }

  .brand-text {
    font-size: 24px;
  }

  .login-title {
    font-size: 24px;
  }

  .features-list {
    display: none;
  }

  .brand-logo {
    width: 250px;
    height: 250px;
  }
}

/* AdminLTE override for better integration */
.content-wrapper,
.right-side {
  background-color: transparent;
}
