html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* Enhanced Navigation Styles */
.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  border-radius: 6px;
  margin: 0 2px;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.2);
  font-weight: 600;
}

.navbar-brand {
  color: #ffffff !important;
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-brand:hover {
  color: #f8f9fa !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-radius: 10px;
  padding: 0.5rem 0;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #495057;
  transform: translateX(5px);
}

/* Identity Pages Styling */
.identity-container {
  max-width: 450px;
  margin: 2rem auto;
  padding: 2rem;
  background: #ffffff;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.identity-header {
  text-align: center;
  margin-bottom: 2rem;
}

.identity-header h1 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.identity-header p {
  color: #6c757d;
  margin-bottom: 0;
}

.identity-form .form-floating {
  margin-bottom: 1rem;
}

.identity-form .form-control {
  border-radius: 10px;
  border: 2px solid #e9ecef;
  padding: 1rem 0.75rem;
  transition: all 0.3s ease;
}

.identity-form .form-control:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.identity-form .btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 10px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  width: 100%;
  margin-top: 1rem;
  transition: all 0.3s ease;
}

.identity-form .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.identity-links {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e9ecef;
}

.identity-links a {
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  margin: 0 0.5rem;
  transition: color 0.3s ease;
}

.identity-links a:hover {
  color: #764ba2;
  text-decoration: underline;
}

.validation-summary-errors {
  background-color: #f8d7da;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 1rem;
  border-radius: 10px;
  margin-bottom: 1rem;
}

.validation-summary-errors ul {
  margin-bottom: 0;
  padding-left: 1.5rem;
}

.text-danger {
  color: #dc3545 !important;
  font-size: 0.875rem;
  margin-top: 0.25rem;
}