/* A simple, modern CSS reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: #f0f2f5;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
}

.login-container {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo-container {
    margin-bottom: 24px;
}

.company-logo-sprite {
    /* Dimensions of a single frame from your sprite */
    width: 300px;
    height: 70px;
    
    /* Center the sprite within its container */
    margin: 0 auto;
    margin-bottom: 16px;

    /* Set the background image to your sprite */
    background-image: url('img/logo_anim_sprite_3d.png');
    background-repeat: no-repeat;
    background-position: 0 0; /* Start at the first frame */
    background-size: 100% auto; /* Ensure the sprite fits the width and scales height proportionally */

    /* Define the animation */
    animation: logo-animation 1.6s steps(15) forwards;
}

@keyframes logo-animation {
    from {
        background-position-y: 0px;
    }
    to {
        background-position-y: -1078px;
    }
}

.logo-container h1 {
    font-size: 24px;
    font-weight: 600;
    color: #1c1e21;
}

.form-group {
    margin-bottom: 16px;
    text-align: left;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #606770;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #dddfe2;
    border-radius: 6px;
    font-size: 16px;
}

.form-group input:focus {
    outline: none;
    border-color: #1877f2;
    box-shadow: 0 0 0 2px #e7f3ff;
}

.login-button {
    width: 100%;
    padding: 12px;
    background-color: #1877f2;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #166fe5;
}

.subscribe-link {
    margin-top: 24px;
    font-size: 14px;
}

.subscribe-link a {
    color: #1877f2;
    text-decoration: none;
}

.subscribe-link a:hover {
    text-decoration: underline;
}

/* Styles for messages */
.message {
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 5px;
}

.message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}