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;
}

/* Login and Authentication Pages Styling */
.auth-container {
  min-height: calc(100vh - 200px);
  display: flex;
  align-items: center;
}

.card {
  border: none;
  border-radius: 15px;
}

.card-body {
  padding: 2rem;
}

.btn-primary {
  background: linear-gradient(45deg, #007bff, #0056b3);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(45deg, #0056b3, #004085);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

/* Amentum Brand Button */
.btn-amentum {
  background: linear-gradient(45deg, #046a38, #034a28);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-weight: 500;
  color: white;
  transition: all 0.3s ease;
}

.btn-amentum:hover {
  background: linear-gradient(45deg, #034a28, #023a20);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(4, 106, 56, 0.3);
  color: white;
}

.btn-amentum:focus {
  background: linear-gradient(45deg, #034a28, #023a20);
  box-shadow: 0 0 0 0.2rem rgba(4, 106, 56, 0.25);
  color: white;
}

.btn-amentum:active {
  background: linear-gradient(45deg, #023a20, #012a18);
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(4, 106, 56, 0.4);
  color: white;
}

.btn-amentum:disabled {
  background: linear-gradient(45deg, #6b8b7a, #5a7a69);
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-check-input:checked {
  background-color: #007bff;
  border-color: #007bff;
}

.alert {
  border-radius: 8px;
  border: none;
}

.text-decoration-none:hover {
  text-decoration: underline !important;
}

/* Icon styling for forgot password success */
.fas {
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

/* Sign Up Page Specific Styling */
.form-text {
  font-size: 0.875rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Enhanced form styling for sign-up */
.card-body h2 {
  color: #333;
  font-weight: 600;
}

.text-muted {
  color: #6c757d !important;
}

/* Phone number input styling */
input[type="tel"] {
  font-family: inherit;
}

/* Date input styling */
input[type="date"] {
  font-family: inherit;
}

/* Checkbox styling improvements */
.form-check-input {
  margin-top: 0.25rem;
}

.form-check-label {
  margin-left: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Link styling in checkboxes */
.form-check-label a {
  color: #007bff;
  text-decoration: none;
}

.form-check-label a:hover {
  text-decoration: underline;
}

/* Responsive adjustments for sign-up form */
@media (max-width: 768px) {
  .col-md-8 {
    padding: 0 1rem;
  }
  
  .card-body {
    padding: 1.5rem;
  }
}

/* Building Info Page Specific Styling */
.card-header {
  background-color: #f8f9fa !important;
  border-bottom: 1px solid #dee2e6;
  font-weight: 600;
}

.card-header h5 {
  color: #495057;
  margin: 0;
}

/* Form styling for building info */
.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

.form-text {
  font-size: 0.8rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

/* Readonly input styling */
input[readonly] {
  background-color: #f8f9fa;
  border-color: #dee2e6;
  color: #6c757d;
}

/* Number input styling */
input[type="number"] {
  text-align: right;
}

/* Hide number input spinners (up/down arrows) */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Hide number input spinners for Firefox */
input[type="number"] {
  appearance: textfield;
}

/* Button styling for building info */
.btn-outline-secondary {
  border-color: #6c757d;
  color: #6c757d;
}

.btn-outline-secondary:hover {
  background-color: #6c757d;
  border-color: #6c757d;
  color: white;
}

/* Card spacing */
.card.mb-4 {
  margin-bottom: 1.5rem !important;
}

/* Responsive adjustments for building info */
@media (max-width: 768px) {
  .col-md-10 {
    padding: 0 1rem;
  }
  
  .card-body {
    padding: 1rem;
  }
  
  .card-header {
    padding: 0.75rem 1rem;
  }
  
  .btn-outline-secondary {
    margin-bottom: 0.5rem;
  }
}

/* Logo Styling */
.logo-link {
  text-decoration: none;
  display: inline-block;
  transition: opacity 0.3s ease;
  vertical-align: middle;
}

.logo-link:hover {
  opacity: 0.8;
}

.logo-img {
  height: 44px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  vertical-align: middle;
}

/* Responsive logo adjustments */
@media (max-width: 768px) {
  .logo-img {
    height: 38px;
    max-width: 165px;
  }
}

@media (max-width: 576px) {
  .logo-img {
    height: 33px;
    max-width: 132px;
  }
}

/* Hero Image Styling */
.hero-image {
  max-width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
}

/* Responsive hero image adjustments */
@media (max-width: 992px) {
  .hero-image {
    max-height: 350px;
  }
}

@media (max-width: 768px) {
  .hero-image {
    max-height: 300px;
  }
}

/* Index Page Email Form Styling */
.btn-lg {
  padding: 12px 30px;
  font-size: 1.1rem;
  font-weight: 500;
}

.form-control {
  padding: 12px 15px;
  font-size: 1rem;
}

.form-label {
  font-weight: 500;
  color: #495057;
  margin-bottom: 0.5rem;
}

/* Responsive button adjustments */
@media (max-width: 768px) {
  .btn-lg {
    width: 100%;
    padding: 15px 30px;
  }
}

/* Default: full height video */
video.hero-video {
  object-fit: cover;
}

/* On large screens: reduce height */
@media (min-width: 992px) {
  video.hero-video {
    height: 60vh; /* or try 50vh for more reduction */
  }
}