/* ================================
   Login Page (scoped)
   Wrap your login template content with:
   <div class="login-page"> ... </div>
   ================================ */

/* Masthead (hero) */
.login-page .masthead {
  position: relative;
  background-size: cover;
  background-position: center;
  padding: 100px 0;            /* big header area */
  color: #fff;
  text-align: center;
  overflow: hidden;
}

.login-page .masthead .overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.4);
}

.login-page .masthead .page-heading {
  position: relative;
  z-index: 1;
}

.login-page .masthead .page-heading h1 {
  font-size: 3rem;             /* adjust to taste */
  margin-bottom: 0.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.login-page .masthead .page-heading .subheading {
  font-size: 1.25rem;
  margin-top: 0.5rem;
  margin-bottom: 1rem;
  font-weight: 400;
  opacity: 0.95;
}

/* Container / grid (scoped) */
.login-page .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;             /* vertical padding around content */
}

.login-page .row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}

.login-page .col {
  padding: 0 15px;
  flex: 1 1 auto;
}

/* Content wrapper */
.login-page .content {
  background: none;
  padding: 30px 0;
}

/* Login box */
.login-page .login-box {
  background: #f1f1f1;         /* light grey */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.08);
}

/* Paragraphs */
.login-page p {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 1.25rem;
  color: #444;
}

/* Forms (scoped) */
.login-page form {
  margin-bottom: 20px;
}

.login-page form .form-group {
  margin-bottom: 1rem;
}

.login-page form .form-control {
  width: 100%;
  padding: 10px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ced4da;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.login-page form .form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.18);
}

.login-page form .btn-primary {
  background-color: #206bfb;
  border-color: #206bfb;
  color: #fff;
  font-size: 1.05rem;
  padding: 10px 18px;
  border-radius: 6px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.02s ease;
}

.login-page form .btn-primary:hover {
  background-color: #1256db;
  border-color: #1256db;
}

.login-page form .btn-primary:active {
  transform: translateY(1px);
}

.login-page form .btn-link {
  color: #206bfb;
  text-decoration: none;
  font-size: 0.98rem;
}

.login-page form .btn-link:hover {
  color: #1256db;
  text-decoration: underline;
}

/* Flash messages (Bootstrap-friendly) */
.login-page .flash-area {
  margin-bottom: 16px;
}

.login-page .alert {
  border-radius: 6px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

/* If not using Bootstrap, uncomment these fallback styles:

.login-page .alert-success { background: #d4edda; color: #155724; }
.login-page .alert-info    { background: #d1ecf1; color: #0c5460; }
.login-page .alert-warning { background: #fff3cd; color: #856404; }
.login-page .alert-danger  { background: #f8d7da; color: #721c24; }

*/

/* Utility */
.login-page .forgot-password {
  font-size: 0.92rem;
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .login-page .masthead { padding: 80px 0; }
  .login-page .masthead .page-heading h1 { font-size: 2.5rem; }
}

@media (max-width: 576px) {
  .login-page .masthead { padding: 60px 0; }
  .login-page .masthead .page-heading h1 { font-size: 2rem; }
  .login-page .masthead .page-heading .subheading { font-size: 1.05rem; }
  .login-page .login-box { padding: 22px; }
}

/* Optional: if your navbar is fixed and content appears hidden underneath,
   add a top padding ONLY within the login page, NOT globally. */
.login-page main,
.login-page .login-content {
  padding-top: 0; /* set to 3.5rem–5rem if needed based on navbar height */
}
