:root {
    --brand: #800000;     
    --brand-dark: #580000;
    --brand-light: #f3e6e6;
  }

  
  body {
    margin: 0;
    font-family: "Poppins", Arial, sans-serif;
    background: url('/assets/images/lnhs_background.jpg') no-repeat center center fixed;
    background-size: cover;
    position: relative;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    padding: 1rem;

  }
  
  body::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.55);
    z-index: 0;
  }
  
 
  .card {
      max-width: 420px;
      width: 100%;
      border: none;
      border-radius: 15px;
      box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
      background-color: rgba(255, 255, 255, 0.95);
    }

  /* Brand Accent Top */
  .brand-top {
    height: 6px;
    background: linear-gradient(90deg, var(--brand), #a63a3a);
  }
  
  /* Titles */
  .app-title {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--brand);
    margin-top: .75rem;
    letter-spacing: 0.5px;
  }
  
  /* Buttons */
  .btn-primary {
    --bs-btn-bg: var(--brand);
    --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-dark);
    --bs-btn-hover-border-color: var(--brand-dark);
    --bs-btn-focus-shadow-rgb: 128, 0, 0;
    font-weight: 600;
  }

   
  label,
  small,
  a,
  button {
    white-space: nowrap !important;
  }

  .input-group .btn {
    z-index: 0;
  }




  
  .choice-btn {
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: .75rem;
    font-weight: 600;
    transition: all .2s ease-in-out;
  }
  
  .choice-btn:hover {
    transform: translateY(-2px);
    opacity: 0.95;
  }
  
  .btn-student {
    background-color: var(--brand);
    border: none;
    color: #fff;
  }
  .btn-student:hover {
    background-color: var(--brand-dark);
    color: #fff;
  }
  
  .btn-employee {
    background-color: #333;
    border: none;
    color: #fff;
  }
  .btn-employee:hover {
    background-color: #111;
    color: #fff;
  }

  .btn-student {
    background-color: var(--brand);
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.25); 
    transition: all 0.15s ease-in-out;
  }
  
  .btn-student:hover {
    background-color: var(--brand-dark);
    box-shadow: 0 6px 14px rgba(88, 0, 0, 0.35); 
    transform: translateY(-2px); 
  }
  
  .btn-student:active {
    background-color: #400000; 
    box-shadow: 0 2px 6px rgba(64, 0, 0, 0.4) inset;
    transform: translateY(1px); 
  }
  
  .btn-student:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.3); 
  }
  
  .btn-employee {
    background-color: #333;
    border: none;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
    transition: all 0.15s ease-in-out;
  }
  
  .btn-employee:hover {
    background-color: #111;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transform: translateY(-2px);
  }
  
  .btn-employee:active {
    background-color: #000;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4) inset;
    transform: translateY(1px);
  }
  
  
  .back-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.85rem;
    padding: 4px 10px;
    border-radius: 6px;
    background: var(--brand);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
  }
  .back-btn:hover {
    background: var(--brand-dark);
    color: #fff;
  }
  
  /* Forms */
  .form-label {
    font-weight: 600;
    color: #333;
  }
  .form-control {
    border-radius: .5rem;
    padding: .65rem .75rem;
  }
  .form-control:focus {
    box-shadow: 0 0 0 .2rem rgba(128,0,0,.25);
    border-color: var(--brand);
  }
  
  .btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(128, 0, 0, 0.25); 
    transition: all 0.15s ease-in-out;
  }
  
  .btn-primary:hover {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    box-shadow: 0 6px 14px rgba(88, 0, 0, 0.35);
    transform: translateY(-2px);
    color: #fff;
  }
  
  .btn-primary:active {
    background-color: #400000 !important; 
    border-color: #400000;
    box-shadow: 0 2px 6px rgba(64, 0, 0, 0.4) inset; 
    transform: translateY(1px);
  }
  
  .btn-primary:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(128, 0, 0, 0.3); 
  }
  
  .btn-primary:disabled {
    background-color: var(--brand-light);
    border-color: var(--brand-light);
    color: #888;
    box-shadow: none;
    transform: none;
  }
  
  .btn-primary:not(:disabled):hover {
    box-shadow: 0 4px 12px rgba(128, 0, 0, 0.35);
  }

  .choices {
    margin-bottom: 0 !important;
  }
  
.invalid-feedback {
  display: block; 
  font-size: 0.875em;
  color: #dc3545;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
  box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.1);
}

::-webkit-scrollbar-thumb {
  background: #2f3b42;
  border-radius: 10px;
  transition: background 0.3s ease-in-out;
}

::-webkit-scrollbar-thumb:hover {
  background: #374049;
}

::-webkit-scrollbar-thumb:active {
  background: #3d464f;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

/* Portal box tile style */
.portal-box {
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:18px;
  border-radius:10px;
  text-decoration:none;
  font-weight:600;
  transition:0.25s ease-in-out;
  color:#fff;
  height:130px;
}


/* Colors */
.portal-student {
  background:rgba(0,100,0,0.9);
}
.portal-employee {
  background:rgba(120,0,0,0.9);
}

/* Hover / active */
.portal-box:hover {
  transform: translateY(-5px);
  opacity:0.95;
}
.portal-box:active{
  transform:scale(.98);
}



@media (max-width: 576px) {
  .auth-full-card {
    height: 100vh !important;       
    max-height: 100vh !important;
    border-radius: 0 !important;   
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .auth-full-card .p-4 {
    padding: 1.25rem !important; 
  }

  .auth-full-card img {
    width: 75px !important;
    height: 75px !important;
  }
}
