/* Import a professional font */
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;600;700&display=swap");

* {
    padding: 0;
    margin: 0;
    font-family: "Montserrat", sans-serif;
    box-sizing: border-box;
    color: white; /* Default text color set to white for glass effect */
}

.login-container {
    display: flex;
    min-height: 100vh;
    min-width: 100vw;
    background-image: url("../assets/municipal-bg.jpeg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

.login-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3); /* Dark overlay */
}

.login-dialog {
    /* Positioning and Glassmorphism Styles */
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 20px; /* Increased gap for better spacing */
    backdrop-filter: blur(25px); /* Adjusted blur for better readability */
    background-color: rgba(255, 255, 255, 0.1); /* Slightly white background */
    width: clamp(300px, 90%, 400px); /* Responsive width */
    justify-content: center;
    align-items: center;
    padding: 30px; /* Increased padding */
    border-radius: 20px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border: 1px solid rgba(255, 255, 255, 0.18);
    z-index: 1;
}

.login-dialog .title {
    text-align: center;
    font-size: 24px;
    font-weight: 700;
}

.login-dialog .subtitle {
    text-align: center;
    font-size: 14px;
    font-weight: 300;
    margin-top: -10px;
}

.login-dialog > form {
    display: flex;
    flex-direction: column;
    width: 100%; /* Make form use full dialog width */
    gap: 20px;
    padding: 10px 0;
}

.input-container {
    position: relative;
    width: 100%;
}

.input-container > label {
    position: absolute;
    top: 1rem; /* Adjusted label position */
    left: 1rem;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    pointer-events: none; /* Allows click-through to input */
}

/* ORANGE THEME - Focus/Valid Label Shift */
.input-container input:focus + label,
.input-container input:valid + label {
    font-size: 12px;
    top: -0.7rem;
    left: 1rem;
    color: rgb(255, 165, 0); /* Bright Orange */
    background-color: rgba(255, 255, 255, 0.05);
    padding: 0 5px;
    border-radius: 5px;
}

input[type="text"],
input[type="password"] {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 1rem; /* Increased padding */
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 10px;
    outline: none;
    font-size: inherit;
    transition: all 0.3s ease;
}

/* ORANGE THEME - Input Focus/Valid Border */
.input-container input:focus,
.input-container input:valid {
    border: 1px solid transparent;
    /* Main orange accent border */
    border-bottom: 2px solid rgb(255, 120, 0);
    background-color: rgba(255, 255, 255, 0.1);
}

.button-actions {
    display: flex;
    flex-direction: row;
    justify-content: center; /* Centered the button */
    margin-top: 10px;
}

/* ORANGE THEME - Button Styling */
.button-actions button {
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;

    /* Orange Gradient Background */
    background: linear-gradient(135deg, rgb(255, 140, 0), rgb(255, 94, 0));
    color: white;

    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(255, 140, 0, 0.5);
}

.button-actions button:hover {
    background: linear-gradient(135deg, rgb(255, 165, 0), rgb(255, 120, 0));
    box-shadow: 0 8px 25px rgba(255, 140, 0, 0.7);
    transform: translateY(-2px);
}
