
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%; /* Responsive width */
    margin: 20px; /* Adjusted margin */
    padding: 30px; /* Increased padding */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Softer shadow */
    border-radius: 8px;
    background: #fff;
    text-align: center; /* Center container content */
}
.logo {
    width: 80px; /* Slightly smaller logo */
    height: 80px;
    display: block;
    margin: 0 auto 15px; /* Adjusted margin */
    /* background: #f0f0f0; */ /* Remove background if using image */
    border-radius: 50%;
    overflow: hidden;
}
.logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
h1 {
    color: #333;
    margin-bottom: 10px; /* Reduced margin */
    font-size: 1.8em; /* Adjusted size */
}
#loginType { /* Added ID to the paragraph */
    color: #555;
    margin-bottom: 25px; /* Adjusted margin */
    font-size: 1.1em;
}
.form-group {
    margin-bottom: 20px; /* Increased spacing */
    text-align: left; /* Align labels/inputs left */
}
/* Wrapper for password input and icon */
.password-wrapper {
    position: relative;
}
label {
    display: block;
    margin-bottom: 8px; /* Increased spacing */
    color: #666;
    font-weight: bold; /* Bolder labels */
}
input[type="email"],
input[type="password"],
input[type="text"] /* Added for password toggle */
 { /* Specific styling */
    width: 100%;
    padding: 12px; /* Increased padding */
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 1em; /* Consistent font size */
}
/* 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 { /* Add focus style */
    border-color: #ff8c00;
    outline: none;
    box-shadow: 0 0 0 2px rgba(255, 100, 0, 0.2);
}
button[type="submit"] { 
    width: 100%;
    padding: 12px; 
    background: #ff6200;
    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; 
    position: relative; 
    overflow: hidden; 
}
button[type="submit"]:hover {
    background: #e55a00;
}
button[type="submit"].logging-in {
    background: #e55a00; 
    cursor: wait; 
    opacity: 0.8; 
}
button[type="submit"]:disabled {
    background-color: #ffb98a; 
    cursor: not-allowed;
    opacity: 0.7;
}
.error-message {
    color: red;
    text-align: center;
    margin-top: 15px; 
    min-height: 1em;
    font-size: 0.9em;
}
.admin-link {
    text-align: center;
    margin-top: 20px; 
}
.admin-link a {
    color: #ff6200;
    text-decoration: none;
    font-weight: bold;
}
.admin-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;
  }
  