  /* --- Reusing and slightly refining styles from previous example --- */
  body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}
.login-container {
    max-width: 400px;
    width: 90%;
    margin: 20px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    background: #fff;
    text-align: center;
}
.logo {
    width: 80px;
    height: 80px;
    display: block;
    margin: 0 auto 15px;
    border-radius: 50%;
    overflow: hidden;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
h1 {
    color: #333;
    margin-bottom: 10px;
    font-size: 1.8em;
}
#loginType { /* Using an ID for consistency */
    color: #555;
    margin-bottom: 25px;
    font-size: 1.1em;
}
.form-group {
    margin-bottom: 20px;
    text-align: left;
}
/* Wrapper for password input and icon */
.password-wrapper {
    position: relative;
}
label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: bold;
}
input[type="email"],
input[type="password"],
input[type="text"] /* Added for password toggle */
{
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em;
}
/* Adjust padding for password input to make space for icon */
input[type="password"],
.password-wrapper input[type="text"] /* Target text input only when it was password */
 {
    padding-right: 40px; /* Space for the icon */
}

/* Password toggle icon style */
.toggle-password-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #888;
    user-select: none; /* Prevent text selection */
    font-size: 1.2em; /* Slightly larger icon */
    line-height: 1; /* Ensure alignment */
}
.toggle-password-icon:hover {
    color: #333;
}
/* --- End Password Toggle Styles --- */

input:focus {
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 100, 0, 0.2);
}
/* --- Button Styling --- */
button[type="submit"] {
    width: 100%;
    padding: 12px;
    background: #ff6200; /* Standard orange */
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: bold;
    transition: background-color 0.3s ease, opacity 0.3s ease; /* Added transition */
    position: relative;
    overflow: hidden;
}
button[type="submit"]:hover {
    background: #e55a00; /* Darker orange on hover */
}
/* Style for when the button is processing */
button[type="submit"].logging-in {
    background: #e55a00; /* Darker orange */
    cursor: wait;
    opacity: 0.8;
}
 /* Style for when the button is disabled */
button[type="submit"]:disabled {
    background-color: #ffb98a; /* Lighter orange */
    cursor: not-allowed;
    opacity: 0.7;
}
/* --- End Button Styling --- */

.error-message {
    color: red;
    text-align: center;
    margin-top: 15px;
    min-height: 1em;
    font-size: 0.9em;
}
.staff-link { /* Renamed from admin-link */
    text-align: center;
    margin-top: 20px;
}
.staff-link a {
    color: #ff6200;
    text-decoration: none;
    font-weight: bold;
}
.staff-link a:hover {
    text-decoration: underline;
}
.forgot-password {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 15px;
}
.forgot-password a {
    color: #ff6200;
    text-decoration: none;
    font-size: 0.9em;
}
.forgot-password a:hover {
    text-decoration: underline;
}
.footer {
    position: fixed;          /* Keep it fixed in the viewport */
    left: 20px;               /* 20px from the left edge */
    /* Adjust bottom using safe area inset for mobile compatibility + padding */
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px);
    color: #FF8C00;           /* Orange color */
    font-weight: bold;        /* Bold text */
    font-size: 16px;          /* Font size */
    font-family: sans-serif;  /* Basic sans-serif font */
    z-index: 1000;            /* High z-index to stay on top */
    pointer-events: none;     /* Optional: Prevent it from blocking clicks on things behind it */
  }
    /* --- Original Footer CSS (For Desktop/Default) --- */
.footer {
    position: fixed;
    left: 20px;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 20px); /* Default bottom spacing */
    color: #FF8C00;
    font-weight: bold;
    font-size: 16px; /* Default font size */
    font-family: sans-serif;
    z-index: 1000;
    pointer-events: none;
  }
  
  
  /* --- Media Query for Mobile Phones (Screens 600px wide or smaller) --- */
  @media (max-width: 600px) {
    .footer {
      /* --- OPTION 1: Keep it fixed, but adjust spacing/size --- */
      font-size: 14px; /* Make font slightly smaller on mobile */
      left: 15px;     /* Slightly less space from the left */
      bottom: calc(env(safe-area-inset-bottom, 0px) + 15px); /* Adjust bottom spacing if needed */
      /* You only need to include properties you want to CHANGE for mobile */
  
  
      /* --- OPTION 2: Make it NOT fixed on mobile (if fixed causes issues) --- */
      /* Uncomment these lines INSTEAD of Option 1 if you want it at the bottom of the content */
      /*
      position: static;  /* Change from fixed to normal flow */
      /* left: auto;        /* Reset fixed positioning */
      /* bottom: auto;      /* Reset fixed positioning */
      /* z-index: auto;     /* Reset z-index */
      /* pointer-events: auto; /* Allow interaction again */
      /* Add some space */
      /* margin-top: 30px;  /* Space above the footer */
      /* padding: 15px;     /* Padding around the text */
      /* text-align: center; /* Optional: Center the text */
      /* width: 100%;      /* Make it full width */
      /* box-sizing: border-box; /* Include padding in the width */
      
    }
  }
  /* Style the link within the footer */
.footer a {
    color: inherit; /* Make the link color the same as the footer text (orange) */
    text-decoration: none; /* Remove the default underline */
    font-weight: inherit; /* Ensure it keeps the bold weight if set on footer */
  }
  
  /* Optional: Add an underline only when hovering over the link */
  .footer a:hover {
    text-decoration: underline;
  }