/* Custom styles for 1800s look */
body {
    /* Warm, antique-paper background */
    background-color: #FDF6E3; /* Papyrus/Antique White */
    font-family: 'Lora', serif; /* Classic serif font for body text */
    color: #36454F; /* Charcoal for main text */
}
h1 {
    font-family: 'Playfair Display', serif; /* More decorative serif for headings */
    color: #2F4F4F; /* Dark Slate Gray for heading */
}
/* Custom styles for strength bar transition */
.strength-bar {
    transition: width 0.3s ease-in-out, background-color 0.3s ease-in-out;
}
/* Button styling for a classic feel */
.classic-button {
    background-color: #4B6F4A; /* Muted Green */
    color: #FDF6E3; /* Antique White text */
    border: 2px solid #2F4F4F; /* Dark border */
    box-shadow: 2px 2px 0px rgba(0, 0, 0, 0.2); /* Subtle shadow */
    transition: all 0.2s ease-in-out;
}
.classic-button:hover {
    background-color: #365C35; /* Darker green on hover */
    box-shadow: 3px 3px 0px rgba(0, 0, 0, 0.3);
    transform: translate(-1px, -1px);
}
.classic-button:active {
    box-shadow: 0px 0px 0px rgba(0, 0, 0, 0.1);
    transform: translate(1px, 1px);
}
/* Input field styling for a classic look */
.classic-input {
    background-color: #FFFCEE; /* Lighter cream for input */
    border: 1px solid #708090; /* Slate Gray border */
    color: #36454F; /* Charcoal text */
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1);
}
.classic-input:focus {
    border-color: #4B6F4A; /* Green focus border */
    outline: none;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.1), 0 0 0 2px rgba(75, 111, 74, 0.3);
}
/* Suggestions box styling */
.classic-suggestions {
    background-color: #FFF8E1; /* Lighter cream background */
    border: 2px solid #708090; /* Slate Gray border */
    color: #2F4F4F; /* Dark Slate Gray text */
}
/* Password strength text colors adjusted for 1800s palette */
.strength-very-weak { color: #8B0000; /* Dark Red */ }
.strength-weak { color: #A0522D; /* Sienna */ }
.strength-moderate { color: #B8860B; /* Dark Goldenrod */ }
.strength-strong { color: #2E8B57; /* Sea Green */ }
.strength-very-strong { color: #1D693A; /* Darker Green */ }

/* Custom styling for the message box */
#messageBox {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #36454F; /* Charcoal */
    color: #FDF6E3; /* Antique White */
    padding: 15px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0.3s ease-in-out;
    font-family: 'Lora', serif;
    text-align: center;
}
#messageBox.show {
    opacity: 1;
    visibility: visible;
}
#messageBox.error {
    background-color: #8B0000; /* Dark Red for errors */
}
#messageBox.warning {
    background-color: #B8860B; /* Dark Goldenrod for warnings */
}