/* ================================
   Your Original Root Variables
================================ */
:root {
  /* Colors */
  --color-primary: #d6590f;            /* Deep Orange */
  --color-primary-dark: #b14b0c;
  --color-secondary: #f4a261;          /* Warm Accent */
  --color-neutral-light: #f8f9fa;      /* Light Gray Background */
  --color-bg-soft-blue: #eef5ff;       /* Soft Blue Background */
  --color-bg-soft-pink: #fff0f5;       /* Soft Pink Background */
  --color-neutral-dark: #212529;       /* Dark Text */
  --color-text-muted: #6c757d;         /* Muted Text */
  --color-white: #ffffff;
  --color-navbar-bg: #1a1a1a;          /* Dark Charcoal for Navbar */
  --color-navbar-hover: #f8f9fa;       /* Hover Highlight */

  /* Border Radius */
  --border-radius-lg: 1rem;
  --border-radius-md: 0.5rem;

  /* Shadows */
  --box-shadow-light: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
  --box-shadow-hover: 0 0.5rem 1rem rgba(214, 89, 15, 0.3);

  /* Transitions */
  --transition-fast: 0.3s ease-in-out;

  /* Typography */
  --font-family-base: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  --font-weight-normal: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
}

.text-brand-primary {
  color: var(--color-primary) !important;
}
.text-brand-secondary {
  color: var(--color-secondary) !important;
}

/* ================================
   Reset & Base Styles
================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: var(--font-family-base);
  background: var(--color-neutral-light);
  color: var(--color-neutral-dark);
  overflow: hidden; /* per your requirement */
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ================================
   Container Setup
================================ */
.auth-container {
  flex: 1;
  display: flex;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 20px;
  background: var(--color-white);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-light);
  overflow: hidden;
  min-height: 550px;
  user-select: none;
}

/* ================================
   Left Image Panel
================================ */
.auth-image {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  color: var(--color-white);
  text-align: center;
  overflow: hidden;
  min-height: 100vh; /* full viewport height */
}

.auth-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  user-select: none;
  pointer-events: none;
}

.auth-image-text {
  position: relative;
  max-width: 320px;
  display: flex;          /* flex container */
  flex-direction: column; /* stack vertically */
  justify-content: center;/* vertical centering */
  align-items: center;    /* horizontal centering */
  z-index: 10;            /* above overlay */
}

.auth-image-text::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: var(--color-primary);
  opacity: 0.6;          /* subtle overlay */
  z-index: -10;
  pointer-events: none;
  border-radius: 8px;
}

.auth-image-text-contrast {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-image-text-contrast h2,
.auth-image-text-contrast p {
  color: #fff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.8px;
  margin-bottom: 1rem;
}

/* ================================
   Right Login Box
================================ */
.auth-box {
  flex: 1;
  max-width: 420px;
  background-color: var(--color-white);
  padding: 3.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-radius: 0  var(--border-radius-lg) var(--border-radius-lg) 0;
  box-shadow: var(--box-shadow-light);
}

.auth-box h1 {
  font-size: 2rem;
  font-weight: var(--font-weight-bold);
  color: var(--color-primary);
  margin-bottom: 2rem;
  text-align: center;
}

/* ================================
   Form Controls
================================ */
.form-group {
  position: relative;
  margin-bottom: 1.75rem;
}

.form-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  font-size: 1.3rem;
  color: var(--color-primary);
  pointer-events: none;
}

.form-control {
  width: 100%;
  padding: 0.75rem 0.75rem 0.75rem 3rem;
  font-size: 1rem;
  border: 1.5px solid #ced4da;
  border-radius: var(--border-radius-md);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  font-weight: var(--font-weight-normal);
  color: var(--color-neutral-dark);
}

.form-control::placeholder {
  color: var(--color-text-muted);
}

.form-control:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(214, 89, 15, 0.25);
  outline: none;
}

/* Password toggle button */
.password-toggle {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-primary);
  font-size: 1.25rem;
  padding: 0;
  line-height: 1;
  transition: color 0.2s ease;
}

.password-toggle:hover,
.password-toggle:focus {
  color: var(--color-primary);
  outline: none;
}

/* ================================
   Checkbox & Forgot Password
================================ */
.d-flex.justify-content-between {
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.form-check-input {
  cursor: pointer;
  width: 1.15em;
  height: 1.15em;
  border-radius: 4px;
  border: 1.5px solid #ced4da;
  transition: border-color 0.25s ease;
}

.form-check-input:checked {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
}

.form-check-label {
  cursor: pointer;
  user-select: none;
  color: var(--color-neutral-dark);
}

/* Forgot password link */
a.text-decoration-none {
  color: var(--color-primary);
  transition: color 0.2s ease;
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
}

a.text-decoration-none:hover,
a.text-decoration-none:focus {
  color: var(--color-primary);
  text-decoration: underline;
  outline: none;
}

/* ================================
   Submit Button
================================ */
.btn.btn-primary {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  font-weight: var(--font-weight-semibold);
  padding: 0.75rem 1rem;
  border-radius: var(--border-radius-md);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus {
  background-color: var(--color-primary-dark);
  border-color: var(--color-primary);
  outline: none;
}

/* ================================
   Social Login Icons
================================ */
.social-login li a {
  font-size: 1.75rem;
  transition: color 0.3s ease;
}

.social-login li a:hover,
.social-login li a:focus {
  color: var(--color-primary);
  outline: none;
}

/* ================================
   Visually Hidden for Accessibility
================================ */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* ================================
   Footer Styles
================================ */
.page-footer {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 1rem 2rem;
  font-size: 0.9rem;
  user-select: none;
  flex-shrink: 0;
  margin-top: 20px;
  box-shadow: 0 -2px 8px rgba(177, 75, 12, 0.3);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-footer nav a {
  color: var(--color-white);
  text-decoration: none;
  font-weight: var(--font-weight-semibold);
  transition: color 0.25s ease;
}

.page-footer nav a:hover,
.page-footer nav a:focus {
  color: var(--color-secondary);
  text-decoration: underline;
  outline: none;
}

.page-footer > div {
  margin-top: 0.5rem;
  width: 100%;
  text-align: center;
}

/* Responsive tweaks */
@media (max-width: 768px) {
    body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: var(--font-family-base);
    background: var(--color-neutral-light);
    color: var(--color-neutral-dark);
    overflow: auto; /* Allow scrolling */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  .auth-container {
    flex: 1 0 auto; /* Grow and shrink as needed */
    display: flex;
    width: 100%;
    max-width: 1200px;
    margin: 20px auto 0; /* Keep top margin */
    background: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--box-shadow-light);
    overflow: hidden;
    min-height: 550px;
    user-select: none;
  }

  .page-footer {
    flex-shrink: 0; /* Do not shrink footer */
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 1rem 2rem;
    font-size: 0.9rem;
    user-select: none;
    margin-top: 20px;
    box-shadow: 0 -2px 8px rgba(177, 75, 12, 0.3);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    box-sizing: border-box;
  }

  .auth-image {
    display: none;
  }

  .auth-box {
    max-width: 100%;
    border-radius: 0 0 var(--border-radius-lg) var(--border-radius-lg);
    padding: 2rem 1.5rem;
  }

  .page-footer nav a {
    margin: 0 0.25rem;
    font-size: 0.85rem;
  }
}
