/* Black background with stars */
html, body {
    background-color: #000000 !important;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    position: relative;
    z-index: 0;
}

/* Star field */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 5% 10%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 15% 25%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 25% 40%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 35% 55%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 45% 70%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 55% 85%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 65% 15%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 75% 30%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 85% 45%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 95% 60%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 10% 90%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 20% 75%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 30% 60%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 40% 45%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 50% 30%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 60% 15%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 70% 85%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 80% 70%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 90% 55%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 95% 40%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 2% 33%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 98% 77%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 45% 12%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 67% 92%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 82% 8%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 23% 82%, #fff, rgba(0,0,0,0)),
        radial-gradient(2px 2px at 71% 43%, #fff, rgba(0,0,0,0)),
        radial-gradient(3px 3px at 38% 28%, #fff, rgba(0,0,0,0));
    background-repeat: repeat;
    z-index: -1;
    animation: twinkle 4s infinite alternate;
    pointer-events: none;
}

/* Twinkling animation - raised the low end so stars stay visible instead of nearly disappearing */
@keyframes twinkle {
    0% { opacity: 0.5; }
    50% { opacity: 1; }
    100% { opacity: 0.5; }
}

/* Target the product name (Welcome to PMBTEXAS MailRoom!) */
.product-name,
h1.voice,
#login-form h1,
.login-form h1 {
    color: #FFD700 !important;
    font-weight: 900 !important;
    text-shadow:
        0 0 10px #FFD700,
        0 0 20px #DAA520,
        2px 2px 4px #000 !important;
    font-size: 32px !important;
    font-family: 'Arial Black', 'Helvetica Bold', sans-serif !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    margin: 20px 0 !important;
    background: transparent !important;
}

/* Style the login form container */
#login-form,
#layout-content {
    background: rgba(0, 0, 0, 0.7) !important;
    border: 2px solid #FFD700 !important;
    border-radius: 15px !important;
    padding: 30px !important;
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.5) !important;
    max-width: 400px !important;
    margin: 50px auto !important;
}

/* Style form inputs */
#login-form input[type="text"],
#login-form input[type="password"] {
    background: #111 !important;
    border: 1px solid #FFD700 !important;
    color: #FFD700 !important;
    padding: 12px !important;
    border-radius: 5px !important;
    width: 100% !important;
    margin: 10px 0 !important;
    font-size: 16px !important;
    box-sizing: border-box !important;
}

/* Style form labels */
#login-form label {
    color: #FFD700 !important;
    font-weight: bold !important;
    text-transform: uppercase !important;
    font-size: 14px !important;
    display: block !important;
    margin-top: 10px !important;
}
/* Style the icon boxes to match the gold theme, with emoji swapped in for the default icons */
#login-form .input-group-prepend {
    background: #111 !important;
    border: 1px solid #FFD700 !important;
}

#login-form .input-group-text.icon {
    background-image: none !important;
    background: #111 !important;
    color: #FFD700 !important;
    font-size: 18px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: none !important;
}

#login-form .input-group-text.icon.user::before {
    content: "👤";
}

#login-form .input-group-text.icon.pass::before {
    content: "🔒";
}
/* Style submit button - covers both <input type="submit"> AND Roundcube elastic's actual
   <button type="submit"> (elastic skin renders a button, not an input, so both are needed) */
#login-form input[type="submit"],
#login-form button[type="submit"] {
    background: #FFD700 !important;
    color: #000 !important;
    font-weight: bold !important;
    border: none !important;
    padding: 15px !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    cursor: pointer !important;
    width: 100% !important;
    margin: 20px 0 !important;
    transition: all 0.3s ease !important;
}

#login-form input[type="submit"]:hover,
#login-form button[type="submit"]:hover {
    background: #DAA520 !important;
    transform: scale(1.02) !important;
    box-shadow: 0 0 20px #FFD700 !important;
}

/* Style footer links */
#login-footer {
    color: #FFD700 !important;
    text-align: center !important;
    margin-top: 20px !important;
}

#login-footer a {
    color: #FFD700 !important;
    text-decoration: none !important;
}

#login-footer a:hover {
    text-decoration: underline !important;
}

/* Style the logo - glow only, no longer flattens the logo art to a blank white silhouette
   (previous brightness(0) invert(1) combo destroyed all color/detail in the actual image) */
#logo {
#logo {
    filter: drop-shadow(0 0 8px gold) drop-shadow(0 0 4px gold) !important;
    max-width: 480px !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    margin: 40px auto !important;
}
