html {
  font-size: 16px;
  height: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: var(--global-palette2);
  background: var(--global-palette9);
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.site {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header Enhancements */
.site-header {
  background: linear-gradient(135deg, #132243 0%, #1e4a7a 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.site-header-row {
  padding: 1rem 0;
}

.site-branding a.brand {
  color: #ffffff;
  text-decoration: none;
}

.site-branding .site-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin: 0;
}

/* Navigation Styles */
.header-navigation {
  font-size: 1rem;
}

.header-navigation .menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 0.5rem;
}

.header-navigation .menu-item a {
  color: rgba(255, 255, 255, 0.9);
  padding: 0.6em 1em;
  display: block;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s ease;
  font-weight: 500;
}

.header-navigation .menu-item a:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

/* Content Area */
#inner-wrap {
  flex: 1;
  padding: 3rem 0;
}

.content-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Card Styles */
.card {
  background: #ffffff;
  border: 1px solid var(--global-palette7);
  border-radius: 8px;
  padding: 2.5rem;
  margin: 2rem auto;
  max-width: 600px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.card h1,
.card h2 {
  color: var(--global-palette1);
  margin-bottom: 1rem;
  font-weight: 700;
}

.card h1 {
  font-size: 2rem;
}

.card h2 {
  font-size: 1.75rem;
}

.card p {
  color: var(--global-palette-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Disabled Form Styles */
.card.form-disabled .password-form {
  opacity: 0.6;
  pointer-events: none;
}

.disabled-form {
  position: relative;
}

.disabled-form::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.5);
  pointer-events: none;
  border-radius: 6px;
}

.disabled-form .form-control:disabled,
.disabled-form .btn:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: not-allowed;
  opacity: 0.7;
}

.disabled-form label {
  color: #9ca3af;
}

/* Form Styles */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--global-palette-text);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid var(--global-palette7);
  border-radius: 6px;
  font-size: 1rem;
  color: var(--global-palette2);
  background-color: #ffffff;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.form-control:focus {
  outline: none;
  border-color: var(--global-palette1);
  box-shadow: 0 0 0 3px rgba(30, 74, 122, 0.1);
}

.form-control:disabled {
  background-color: #f3f4f6;
  color: #9ca3af;
  border-color: #d1d5db;
  cursor: not-allowed;
}

.form-control::placeholder {
  color: var(--global-palette5);
  opacity: 0.7;
}

/* Button Styles */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-right: 0.75rem;
  margin-bottom: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--global-palette-btn-bg) 0%, var(--global-palette-highlight) 100%);
  color: var(--global-palette-btn);
  box-shadow: 0 2px 4px rgba(30, 74, 122, 0.3);
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--global-palette-btn-bg-hover) 0%, var(--global-palette-btn-bg) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(30, 74, 122, 0.4);
  color: var(--global-palette-btn-hover);
  text-decoration: none;
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled {
  background: #d1d5db;
  color: #9ca3af;
  cursor: not-allowed;
  box-shadow: none;
  opacity: 0.6;
}

.btn-secondary {
  background: #ffffff;
  color: var(--global-palette3);
  border: 1px solid var(--global-palette7);
}

.btn-secondary:hover {
  background: var(--global-palette9);
  border-color: var(--global-palette6);
  text-decoration: none;
}

/* Alert Styles */
.alert {
  padding: 1rem 1.25rem;
  border-radius: 6px;
  margin: 1.5rem 0;
  border: 1px solid transparent;
}

.alert-info {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1e40af;
}

.alert-success {
  background: #d1fae5;
  border-color: #6ee7b7;
  color: #065f46;
}

.alert-danger {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

/* Validation */
.text-danger {
  color: #dc3545;
  font-size: 0.875rem;
  display: block;
  margin-top: 0.25rem;
}

@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;
}