:root {
    --primary: #ffb7b2;
    --secondary: #ff9aa2;
    --accent: #e2f0cb;
    --text: #4a4a4a;
    --glass: rgba(255, 255, 255, 0.85); /* Made less transparent */
    --glass-border: rgba(255, 255, 255, 0.9);
    --envelope-dark: #ff758f;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(135deg, #fff0f3 0%, #ffe3e8 100%);
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Background Animations */
#background-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.floating-heart {
    position: absolute;
    color: var(--secondary);
    opacity: 0.3;
    user-select: none;
}

.login-wrapper {
    width: 100%;
    max-width: 500px;
    padding: 20px;
    perspective: 1000px;
}

.glass-panel {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 3px solid #ffffff;
    border-radius: 25px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 20px 40px rgba(255, 117, 143, 0.2);
    transform-style: preserve-3d;
}

.title {
    font-family: 'Pacifico', cursive;
    color: var(--envelope-dark);
    font-size: 3rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 0px rgba(255, 255, 255, 1);
}

.subtitle {
    color: var(--text);
    margin-bottom: 30px;
    font-weight: 500; /* Made slightly bolder */
}

/* --- FIXED INPUT FIELDS --- */
.input-group {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 25px;
}

.pass-char {
    width: 55px;
    height: 65px;
    /* High Contrast Styles */
    background: #ffffff; 
    border: 2px solid var(--secondary); 
    border-radius: 12px;
    
    /* Text Styling */
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    color: var(--envelope-dark);
    font-family: 'Pacifico', cursive;
    text-transform: uppercase;
    
    /* Shadow for visibility */
    box-shadow: 0 4px 10px rgba(255, 117, 143, 0.15);
    outline: none;
    transition: all 0.3s ease;
}

.pass-char:focus {
    border-color: var(--envelope-dark);
    background: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 117, 143, 0.3);
}
/* -------------------------- */

/* Clues Section */
.hints-section {
    margin-bottom: 25px;
}

.hint-toggle {
    cursor: pointer;
    color: var(--envelope-dark);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #ffffff; /* Solid white */
    border: 1px solid var(--secondary);
    border-radius: 20px;
    transition: background 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hint-toggle:hover {
    background: #fff0f3;
}

.hints-content {
    height: 0;
    overflow: hidden;
    opacity: 0;
    margin-top: 10px;
    text-align: left;
    background: #ffffff;
    border-radius: 15px;
    border: 1px solid #ffe3e8;
}

.hints-content ol {
    padding: 20px 40px;
    margin: 0;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
}

.hints-content li {
    margin-bottom: 8px;
}

/* Button */
.enter-btn {
    background: var(--envelope-dark);
    color: white;
    border: none;
    padding: 14px 45px;
    font-size: 1.2rem;
    border-radius: 30px;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 5px 15px rgba(255, 117, 143, 0.3);
    margin-top: 10px;
}

.enter-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 117, 143, 0.4);
    background: #ff5c7c;
}

/* Footer Hint */
.footer-note {
    margin-top: 30px;
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.8;
    font-style: italic;
}

/* Error/Success Messages */
.validation-msg {
    height: 25px;
    margin-bottom: 10px;
    font-size: 1rem;
    font-weight: 700;
}
.error-text { color: #ff4757; }
.success-text { color: #2ed573; }