/* Knox Systems Brand Styling */
:root {
  --knox-primary: #2563EB;
  --knox-primary-hover: #1D4ED8;
  --knox-dark: #111827;
  --knox-gray: #6B7280;
  --knox-light-gray: #F3F4F6;
  --knox-border: #E5E7EB;
  --knox-text: #374151;
  --knox-success: #10B981;
  --knox-error: #EF4444;
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--knox-text);
  background-color: #FAFAFA;
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Navigation */
.knox-navbar {
  background-color: white;
  border-bottom: 1px solid var(--knox-border);
  padding: 1rem 0;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
}

.knox-nav-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
}

.knox-logo {
  display: flex;
  align-items: center;
}

/* Main Container */
.knox-main-container {
  min-height: 100vh;
  padding-top: 100px;
  padding-bottom: 40px;
  display: flex;
  align-items: center;
}

/* Form Container */
.knox-form-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  padding: 3rem;
  margin-bottom: 2rem;
}

.knox-form-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.knox-form-header h1 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--knox-dark);
  margin-bottom: 0.75rem;
}

.knox-form-header p {
  font-size: 1rem;
  color: var(--knox-gray);
  margin: 0;
}

/* Form Styling */
.knox-form .form-group {
  margin-bottom: 1.5rem;
}

.knox-form label {
  display: block;
  font-weight: 500;
  color: var(--knox-dark);
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.knox-input {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  border: 1px solid var(--knox-border);
  border-radius: 8px;
  transition: all 0.2s ease;
  background-color: white;
}

.knox-input:focus {
  outline: none;
  border-color: var(--knox-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.knox-input::placeholder {
  color: #9CA3AF;
}

/* Button Styling */
.knox-btn-primary {
  background-color: var(--knox-primary);
  color: white;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 1rem;
}

.knox-btn-primary:hover {
  background-color: var(--knox-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.knox-btn-primary:active {
  transform: translateY(0);
}

.knox-btn-primary:disabled {
  background-color: var(--knox-gray);
  cursor: not-allowed;
  transform: none;
}

/* Form Footer */
.knox-form-footer {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--knox-gray);
}

.knox-form-footer a {
  color: var(--knox-primary);
  text-decoration: none;
  font-weight: 500;
}

.knox-form-footer a:hover {
  text-decoration: underline;
}

/* Footer */
.knox-footer {
  text-align: center;
  color: var(--knox-gray);
  font-size: 0.875rem;
}

.knox-footer p {
  margin: 0.5rem 0;
}

.knox-support a {
  color: var(--knox-primary);
  text-decoration: none;
}

.knox-support a:hover {
  text-decoration: underline;
}

/* Alert Styling */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-size: 0.875rem;
}

.alert-success {
  background-color: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}

.alert-danger {
  background-color: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

/* Loading State */
.loading {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
  .knox-form-container {
    padding: 2rem 1.5rem;
    margin: 0 1rem;
  }
  
  .knox-form-header h1 {
    font-size: 1.5rem;
  }
  
  .knox-main-container {
    padding-top: 80px;
  }
}

/* Additional Bootstrap Overrides */
.form-control:focus {
  border-color: var(--knox-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.btn:focus {
  box-shadow: none;
}

/* Success Page Styling */
.success-container {
  text-align: center;
  padding: 3rem;
}

.success-icon {
  width: 80px;
  height: 80px;
  background-color: var(--knox-success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 2rem;
}

.success-icon svg {
  width: 40px;
  height: 40px;
  color: white;
}