/* Basic Overlay */
.auth-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

/* Basic Popup Styling */
.auth-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 30px 40px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    min-width: 280px;
    max-width: 90%;
}

.auth-popup h2 {
    margin-top: 0;
    margin-bottom: 20px;
    text-align: center;
    color: #333;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
}

.close-btn:hover {
    color: #333;
}

/* Form Elements */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

/* === Styles for the password field specifically === */

/* The wrapper div containing ONLY the input and the icon */
.password-wrapper {
    position: relative; /* *** VERY IMPORTANT: Establishes positioning context for the absolute positioned icon *** */
    /* No margin/padding needed here unless desired for spacing *between* input+icon and other elements */
}

/* Style the input field itself */
.password-wrapper input[type="password"],
.password-wrapper input[type="text"] { /* Includes text type for when password shown */
     display: block; /* Make sure input behaves like a block */
     width: 100%;    /* Make input take full width of its container (.password-wrapper) */
     padding: 10px;  /* Your standard padding */
     /* *** CRITICAL: Make space on the right FOR the icon. Adjust '40px' based on your icon's width + desired space *** */
     padding-right: 40px;
     border: 1px solid #ccc;
     border-radius: 4px;
     /* *** CRITICAL: Ensures padding and border are included IN the 100% width, not added to it *** */
     box-sizing: border-box;
     /* Remove potential conflicting properties */
     margin: 0;
}

/* Style the icon image */
.password-wrapper .toggle-password {
    /* *** CRITICAL: Positions the icon relative to the .password-wrapper *** */
    position: absolute;
    /* Position it vertically centered */
    top: 70%;
    /* *** Position from the right edge of the wrapper. Adjust '10px' for spacing from the edge *** */
    right: 10px;
    /* Vertically center the icon precisely */
    transform: translateY(-50%);
    cursor: pointer;
    /* Optional but recommended: Constrain icon size if needed */
    height: 20px; /* Adjust as needed */
    width: auto;  /* Maintain aspect ratio */
    /* Add hover effect */
    opacity: 0.7;
    transition: opacity 0.2s ease-in-out;
}

.password-wrapper .toggle-password:hover {
     opacity: 1.0;
}

/* === End of Password Field Styles === */

button[type="submit"] {
    background-color: #007bff;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    margin-top: 10px;
}


button[type="submit"]:hover {
    background-color: #0056b3;
}

/* Error and Message Styling */
.error-message {
    color: #dc3545; /* Red */
    font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    min-height: 1.2em; /* Reserve space even when empty */
}
.message {
    color: #28a745; /* Green */
     font-size: 0.9em;
    margin-top: -10px;
    margin-bottom: 10px;
    min-height: 1.2em;
}
button {
  background-color: #fba500;
  border: 0;
  padding: 10px;
  font-size: 0.8rem;
  border-radius: 10px;
  cursor: pointer;
}
@media (max-width: 768px) {
	button { font-size: 0.8rem; width: auto; }
}
