/* Custom styles for the login page */
:root {
  --bg-overlay: rgba(0,0,0,0.45);
}

body {
  min-height: 100vh;
  position: relative;
  background-image: url('../assets/img/105.jpg'), linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
}

/* Dark overlay to keep form readable on bright/detailed images */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: 0;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 1; /* keep content above the overlay */
}

.card {
  border-radius: 12px;
  background-color: rgba(255,255,255,0.95);
}

.card .card-title {
  font-weight: 600;
}

input:invalid { box-shadow: none; }

/* Logo sizing */
.logo-img {
  max-width: 50%;
  max-height: 50%;
  width: auto;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
  /* Better card sizing on mobile */
  .card { margin-bottom: 1rem; }
  
  /* Form improvements */
  .form-control, .form-select, .btn { font-size: 1rem; }
  
  /* Navbar adjustments */
  .navbar-brand { font-size: 1.1rem; }
  
  /* Logo sizing on mobile */
  .logo-img { max-width: 70%; }
  
  /* Table improvements */
  .table-responsive { font-size: 0.875rem; }
}

@media (max-width: 576px) {
  /* Extra small screens */
  body { font-size: 0.9rem; }
  
  /* Adjust padding on small screens */
  .container { padding-left: 1rem; padding-right: 1rem; }
  
  /* Stack request cards better */
  .request-card .row .col-md-8,
  .request-card .row .col-md-4 { 
    width: 100%; 
    margin-bottom: 0.5rem;
  }
}
