* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ff6b6b;
    color: #333; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
    position: relative;
}

.video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.video-background iframe {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    opacity: 0.5
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: rgba(255, 255, 255, 255); 
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); 
    border-radius: 8px; 
    margin-top: auto;
    margin-bottom: auto;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form h2 {
    text-align: center;
}

.login-form input {
    padding: 10px;
    margin: 10px 0; 
    border: 1px solid #ccc; 
    border-radius: 5px; 
    font-size: 16px; 
}

.login-form button {
    padding: 10px;
    background-color: #cc3737;
    color: white; 
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer; 
    transition: background-color 0.3s;
}

.login-form button:hover {
    background-color: rgb(100, 2, 2);
}

.login-form a {
    color: #cc3737; 
    text-decoration: none; 
}

@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin-inline: 15px;
    }

    .links {
        flex-direction: column !important;
    }

    .links p {
        border-bottom: 1px solid #333;
        margin-bottom: 15px;
        padding-bottom: 15px;
    }

    .login-form input, .login-form button {
        font-size: 14px;
    }
}

.links {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    text-align: center;
    margin-top: 15px;
}

.main-page {
    margin-top: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    color: #cc3737;
    padding: 20px;
    padding-inline: 40px;
    border: 1px solid #333;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    display: none;
}

.error-popup p {
    margin: 0;
    font-size: 18px;
    margin-bottom: 5px;
}

.error-popup .close-btn {
    margin-top: 10px;
    padding: 10px 15px;
    background-color: red;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
}

.error-popup .close-btn:hover {
    background-color: darkred;
}
