/* --- Global Reset and Base Styles --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Montserrat', sans-serif; /* Using a modern, bold font like in the demo */
}

body {
    /* Replace 'background.jpg' with your actual image path */
    background-image: url('../img/backgrounds/light-blue data.png'); 
    background-size: cover;
    background-position: center;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #fff; /* Default text color for the login panel */
}

/* --- Login Container & Panel --- */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.login-panel {
    background-color: rgba(18, 25, 30, 0.9); /* Semi-transparent dark background */
    padding: 40px 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    width: 100%;
    max-width: 380px;
    text-align: center;
}

/* --- Logo & Name --- */
.logo-area {
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.logo {
    /* Placeholder styles for the mountain logo area */
    width: 120px; 
    height: 120px; 
    margin: 0 auto 10px;
}

.logo img {
    width: 100%;
    height: 100%;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: #fff;
}

.welcome-text {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 30px;
    color: #b2bec3;
}

/* --- Form and Inputs --- */
.input-group {
    margin-bottom: 20px;
}

input[type="email"], 
input[type="password"] {
    width: 100%;
    padding: 12px 15px;
    background-color: #2c3e50; /* Slightly lighter dark background for input fields */
    border: 1px solid #34495e;
    border-radius: 6px;
    color: #ecf0f1;
    font-size: 1rem;
    transition: border-color 0.3s;
}

input::placeholder {
    color: #7f8c8d;
}

input:focus {
    border-color: #3498db; /* Blue focus highlight */
    outline: none;
}

.login-button {
    width: 100%;
    padding: 12px 15px;
    background-color: #ffffff; /* Strong blue for the button */
    color: rgba(18, 25, 30, 0.9);
    border: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
    letter-spacing: 1px;
}

.login-button:hover {
    background-color: #0097e0;
}

/* --- Links --- */
.link-area {
    margin-top: 25px;
    font-size: 0.9rem;
    color: #b2bec3;
}

.link-area a {
    color: #ffffff; /* Purple for links */
    text-decoration: none;
    transition: color 0.3s;
}

.link-area a:hover {
    color: #0097e0;
    text-decoration: underline;
}

.divider {
    margin: 0 10px;
}

.tagline {
    margin-top: 40px;
    font-size: 0.8rem;
    color: #7f8c8d;
    font-style: italic;
}

/* --- Background Toggle Icon --- */
#bg-toggle-icon {
    position: fixed;
    top: 20px;
    right: 20px;
    
    /* Styling for the "Theme" text button */
    padding: 10px 15px; /* Adjust padding as needed */
    background: rgba(18, 25, 30, 0.9); /* Semi-transparent white background */
    backdrop-filter: blur(5px); /* Optional: Frosted glass effect */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    border-radius: 20px; /* Rounded corners */
    
    color: #ecf0f1; /* Light text color */
    font-size: 0.9rem; /* Adjust font size */
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.5px;

    cursor: pointer;
    user-select: none;
    z-index: 100;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s ease; /* Smooth transitions */
}

#bg-toggle-icon:hover {
    background: rgba(255, 255, 255, 0.2); /* Slightly less transparent on hover */
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-2px); /* Slight lift effect */
}

/* --- Alternative Background --- */
/* State 1 */
body[data-bg-state="1"] {
    background-image: url('../img/backgrounds/dark-mountain.png');
}

/* State 2 */
body[data-bg-state="2"] {
    background-image: url('../img/backgrounds/light-mountain.png');
}

/* State 3 */
body[data-bg-state="3"] {
    background-image: url('../img/backgrounds/light-blue data.png');
}

/* State 4 */
body[data-bg-state="4"] {
    background-image: url('../img/backgrounds/dark-blue data.png');
}

/* State 5 */
body[data-bg-state="5"] {
    background-image: url('../img/backgrounds/light-orange data.png');
}

/* State 6 */
body[data-bg-state="6"] {
    background-image: url('../img/backgrounds/dark-orange data.png');
}

/* --- Flash Message Styling --- */
.flash-messages {
    width: 100%;
    margin-bottom: 20px;
}

.flash-message {
    padding: 12px 15px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Specific style for error messages */
.flash-message.error {
    background-color: #e74c3c; /* Red background */
    color: #ffffff; /* White text */
    border: 1px solid #c0392b;
}