/* Login Page Styles */
body.login-page {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  font-family: "Nunito", sans-serif;
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.login-card {
  max-width: 400px;
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  background: white;
  overflow: hidden;
}

.login-header {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  text-align: center;
  padding: 2rem 1rem 1rem;
  color: white;
}

.login-logo {
  width: 80px;
  height: 80px;
  background: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.login-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.5rem 0;
}

.login-subtitle {
  opacity: 0.8;
  margin: 0;
  font-size: 0.9rem;
}

.login-form {
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  font-weight: 600;
  color: #5a5c69;
  margin-bottom: 0.5rem;
  display: block;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e3e6f0;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.form-control:focus {
  border-color: #4e73df;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
  outline: none;
}

.btn-login {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  border: none;
  border-radius: 8px;
  padding: 0.75rem;
  font-weight: 600;
  transition: transform 0.2s ease;
  width: 100%;
  color: white;
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(78, 115, 223, 0.4);
  color: white;
}

.btn-login:focus {
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.5);
}

/* Info Tabs Styles */
.info-tabs {
  margin-top: 2rem;
}

.nav-tabs {
  border-bottom: 2px solid #e3e6f0;
  background: white;
  border-radius: 8px 8px 0 0;
}

.nav-tabs .nav-link {
  border: none;
  color: #5a5c69;
  font-weight: 600;
  padding: 1rem 1.5rem;
  transition: all 0.3s ease;
  position: relative;
}

.nav-tabs .nav-link:hover {
  border-color: transparent;
  color: #4e73df;
  background: transparent;
}

.nav-tabs .nav-link.active {
  background: linear-gradient(135deg, #4e73df 0%, #224abe 100%);
  color: white;
  border-radius: 8px 8px 0 0;
  border-color: transparent;
}

.tab-content {
  background: #f8f9fc;
  border-radius: 0 0 8px 8px;
  padding: 2rem;
  border: 2px solid #e3e6f0;
  border-top: none;
}

.tab-pane h5 {
  margin-bottom: 1.5rem;
  color: #4e73df;
  font-weight: 700;
}

.info-card {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border-left: 4px solid #4e73df;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.info-card h6 {
  color: #4e73df;
  font-weight: 700;
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

.info-card p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
}

.info-card .username {
  color: #28a745;
  font-weight: 600;
  background: #d4edda;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
}

.info-card .password {
  color: #dc3545;
  font-weight: 600;
  background: #f8d7da;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-family: "Courier New", monospace;
}

.info-card .text-muted {
  font-style: italic;
  color: #6c757d;
  margin-top: 0.5rem;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  border: 1px solid #b6d4da;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.alert-info .fas {
  margin-right: 0.5rem;
  color: #0c5460;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-container {
    padding: 1rem;
  }

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

  .nav-tabs .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .tab-content {
    padding: 1.5rem;
  }

  .info-card {
    padding: 1rem;
  }
}

/* Animation for card click */
.info-card.clicked {
  animation: cardClick 0.3s ease;
}

@keyframes cardClick {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.98);
  }
  100% {
    transform: scale(1);
  }
}

/* Additional styles for password toggle */
.input-group-append .btn {
  border-left: 0;
  background-color: #f8f9fc;
  border-color: #d1d3e2;
  color: #5a5c69;
  transition: all 0.3s ease;
}

.input-group-append .btn:hover {
  background-color: #eaecf4;
  color: #3a3b45;
}

.input-group-append .btn:focus {
  box-shadow: none;
  background-color: #eaecf4;
}

.input-group .form-control {
  border-right: 0;
}

.input-group .form-control:focus {
  border-color: #bac8f3;
  box-shadow: 0 0 0 0.2rem rgba(78, 115, 223, 0.25);
}

.input-group .form-control:focus + .input-group-append .btn {
  border-color: #bac8f3;
}

/* Animation for icon change */
#toggleIcon {
  transition: all 0.3s ease;
}

.password-visible #toggleIcon {
  color: #4e73df;
}
