/* Login Page Styling */
body {
    background-color: rgba(15, 15, 15, 0.95); /* Very dark background like in the screenshot */
    min-height: 100vh;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Prevent scrollbars */
}

.standalone-login-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    width: 100%;
    max-width: 380px; /* Match the width in the screenshot */
    position: relative;
    z-index: 1000;
}

.login-card {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    background-color: #1a1a1a; /* Match the modal's darker background */
    color: white;
    position: relative;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: transparent;
    color: white;
    opacity: 1; /* Increased opacity for better visibility */
    font-size: 1rem;
    z-index: 10;
    filter: invert(1) grayscale(100%) brightness(200%); /* This makes the Bootstrap X icon white */
    border: none;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-close:hover {
    opacity: 1;
    cursor: pointer;
}

.login-header {
    padding: 20px;
    text-align: center;
    background-color: transparent;
    border-bottom: none;
    padding-top: 30px;
}

.login-body {
    padding: 0 30px 30px;
}

.login-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 25px;
    text-align: center;
    color: white;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    transition: all 0.3s ease;
    font-size: 14px;
}

.form-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}

.form-input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.signin-btn {
    width: 100%;
    padding: 12px 0;
    background-color: #dc1a22; /* Bright red button like in the screenshot */
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    margin-bottom: 20px;
    transition: background-color 0.3s ease;
}

.signin-btn:hover {
    background-color: #b8151c;
}

.remember-me {
    display: flex;
    align-items: center;
    margin: 5px 0 10px;
}

.remember-me input {
    margin-right: 8px;
}

.remember-me label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    user-select: none;
}

.help-text {
    text-align: center;
    margin: 15px 0;
    font-size: 14px;
}

.help-text a, .signup-text a {
    color: #4a90e2; /* Bright blue for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.help-text a:hover, .signup-text a:hover {
    color: #75a9e6;
    text-decoration: underline;
}

.signup-text {
    text-align: center;
    margin-top: 20px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

/* Style for the "Sign up now" text */
.signup-text a {
    font-weight: 600;
}

/* Optional page background for the login page */
.login-page-background {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)), 
                url('../img/hydropower-bg.jpg') no-repeat center center fixed;
    background-size: cover;
    min-height: calc(100vh - 136px); /* Adjust based on your navbar and footer height */
    display: flex;
    align-items: center;
    justify-content: center;
}