* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html,
body {
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;   /* horizontal center */
    align-items: center;       /* vertical center */
    flex-direction: column;
    background: linear-gradient(-45deg, #3498db, #8e44ad, #e74c3c, #f39c12);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    padding: 20px;
    margin: 0;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.container {
    text-align: center;
    padding: 2rem;
    border-radius: 15px;
    background-color: #fff;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    width: 90%;
    max-width: 600px;
    position: relative;
    z-index: 1;
    margin: 0; /* Remove top/bottom margin for perfect centering */
    flex: 0 0 auto;
}

/* Remove animated border effect */
.container::before,
.container::after {
    display: none;
    content: none;
}

.logo-container {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    width: 100%;
    max-width: 330px; /* Increased from 160px */
    height: auto;
    display: block;
    margin: 0 auto;
}

.company-name {
    font-size: 1.8rem;
    font-weight: 600;
    color: white;
    margin-bottom: 3rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.8s ease;
    white-space: nowrap;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.btn {
    padding: 1rem 2rem;
    font-size: 1.2rem;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.9);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: translateY(20px);
}

.employee-btn {
    background: linear-gradient(to right, #3498db, #2980b9);
    color: white;
    text-decoration: none;
}

.admin-btn {
    background: linear-gradient(to right, #e74c3c, #c0392b);
    color: white;
    text-decoration: none;
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: translateY(0);
}

.btn.clicked {
    transform: scale(0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Enhanced Responsive design */
@media (max-width: 768px) {
    .company-name {
        font-size: 1.2rem;
        margin-bottom: 2rem;
    }

    .buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn {
        width: 100%;
        padding: 0.8rem 1.5rem;
    }

    .logo {
        max-width: 280px; /* Increased from 120px */
    }
}

@media (max-width: 480px) {
    .container {
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 1.2rem;
    }

    .company-name {
        font-size: 1.1rem;
        margin-bottom: 1.2rem;
        white-space: unset;
        align-self: center;
        max-width: 100%;
        overflow: auto;
        text-overflow: ellipsis;
        display: block;
    }

    .logo-container {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 100%;
    }

    .logo {
        max-width: 150px; /* Increased from 100px */
    }

    .buttons {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
        width: 100%;
    }

    .btn {
        font-size: 1rem;
        padding: 0.7rem 1.2rem;
        width: 100%;
    }
}

/* For very small screens */
@media (max-width: 320px) {
    .company-name {
        font-size: 0.6rem;

    }

    .container {
        padding: 1rem;
    }

    .logo {
        max-width: 180px; /* Increased from 80px */
    }
}

/* For landscape orientation on mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .container {
        padding: 1rem;
    }

    .company-name {
        margin-bottom: 1rem;
        font-size: 1.3rem;
    }

    .buttons {
        flex-direction: row;
    }

    .logo {
        max-width: 140px;
    }
}

.footer {
    flex-shrink: 0;
    width: 100%;
    text-align: center;
    color: #fff;
    background: rgba(0, 0, 0, 0.5);
    padding: 1rem 0;
    font-size: 0.95rem;
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 10;
}

.footer a {
    color: #4fc3f7;
    text-decoration: none;
}