/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Prevent scrolling on all viewports */
html, body {
    height: 100%;
    overflow: hidden;
}

/* Body styles */
body {
    font-family: 'Open Sans', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Main container */
.container {
    max-width: 1400px;
    width: 100%;
    height: 100vh;
    padding: 40px;
    text-align: center;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
}

/* Logo styling */
.logo img {
    max-width: 300px;
    height: auto;
    margin: 15px auto;
    display: block;
}

/* Animation container */
.animation-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
}

.animation-container video {
    width: 100%;
    max-height: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Header styling */
.header {
    margin: 15px 0;
}

.header h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 700;
    color: #000;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

.header p {
    font-size: 1.3rem;
    color: #7f8c8d;
    max-width: 600px;
    margin: 0 auto;
}

.header br {
    display: none; /* Hidden on desktop */
}

/* Login button (webpage) */
.login-button {
    margin: 15px 0;
}

#loginBtn {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 16px 35px 16px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    animation: pulse 2s infinite ease-in-out;
}

#loginBtn::before {
    content: "🔒";
    position: absolute;
    left: 15px;
    font-size: 1.3rem;
    margin-right: 10px;
}

#loginBtn:hover:not(.disabled) {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

#loginBtn.disabled {
    background-color: #ccc;
    color: #666;
    cursor: not-allowed;
    animation: none;
    pointer-events: none;
}

/* Pulse animation for CTA */
@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

/* Login modal */
.login-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.login-modal.active {
    display: flex;
}

.login-content {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    position: relative;
    width: 90%;
    max-width: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #e74c3c;
    text-align: center;
}

.close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
    padding: 5px;
}

.close:hover {
    color: #e74c3c;
}

.login-content h2 {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: #2c3e50;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-content form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.login-content input {
    padding: 12px;
    font-size: 1.1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.3s ease;
}

.login-content input:focus {
    border-color: #e74c3c;
}

.login-content button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 16px 35px 16px 50px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    animation: pulse 2s infinite ease-in-out;
}

.login-content button::before {
    content: "🔒";
    position: absolute;
    left: 15px;
    font-size: 1.3rem;
    margin-right: 10px;
}

.login-content button:hover {
    background-color: #c0392b;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    animation-play-state: paused;
}

/* Footer */
.contact-info {
    margin: 15px 0;
    padding-bottom: 20px; /* Added padding to prevent cutoff */
    font-size: 1rem;
    color: #666;
}

.contact-info a {
    color: #e74c3c;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Smaller screens */
@media (max-width: 768px) {
    .container {
        padding: 40px;
    }
    .logo img {
        max-width: 250px;
    }
    .animation-container video {
        max-height: 250px;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .header p {
        font-size: 1.2rem;
    }
    .header br {
        display: inline; /* Show line break on mobile */
    }
    #loginBtn {
        padding: 14px 30px 14px 45px;
        font-size: 1.1rem;
    }
    #loginBtn::before {
        left: 12px;
        font-size: 1.2rem;
    }
    .login-content button {
        padding: 14px 30px 14px 45px;
        font-size: 1.1rem;
    }
    .login-content button::before {
        left: 12px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 40px;
    }
    .logo img {
        max-width: 200px;
    }
    .animation-container video {
        max-height: 200px;
    }
    .header h1 {
        font-size: 2rem;
    }
    .header p {
        font-size: 1rem;
    }
    .header br {
        display: inline; /* Show line break on mobile */
    }
    #loginBtn {
        padding: 12px 25px 12px 40px;
        font-size: 1rem;
    }
    #loginBtn::before {
        left: 10px;
        font-size: 1.1rem;
    }
    .login-content button {
        padding: 12px 25px 12px 40px;
        font-size: 1rem;
    }
    .login-content button::before {
        left: 10px;
        font-size: 1.1rem;
    }
}
