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

body {
    font-family: Arial, sans-serif;
    background: linear-gradient(to right, #ff6b6b, #ffa6a6);
    color: #333; 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    background-color: #fff;
    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;
}

.check {
    display: flex;
    align-items: center;
    margin-top: 10px;
}

.check input[type="checkbox"] {
    width: 15px;
    height: 15px;
    margin-left: 10px;
    cursor: pointer;
    accent-color: #cc2323;
}

.check label {
    font-size: 14px;
}