main {
    min-height: 55vh;
}

.login-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50%;
    max-width: 500px;
    min-width: 320px;
    color: var(--text-color);
    border: 2px solid var(--base-border-color);
    background-color: var(--second-color);
    border-radius: 15px;
    margin: 60px auto 0;
    padding: 12px;
}

.login-container h1 {
    font-size: 1.75rem;
}

.login-container label {
    padding-left: 5px;
    font-size: 1.0625rem;
}

.form-container {
    width: 90%;
}

#login-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

#login-form div {
    width: 100%;
}

#login-form div input {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    font-size: 1.125rem;
    padding-left: 15px;
    margin-top: 5px;
    border: 2px solid var(--base-border-color);
    background: none;
    color: white;
    transition: 0.5s ease-in-out;
}

#login-form div input:hover {
    border-color: var(--button-color);
}

#login-form div input:focus {
    outline: none;
    box-shadow: 0 0 12px 0 var(--button-color);
}

#login-button {
    font-size: 1.0625rem;
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background-color: #23fff2;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.7);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

#login-button:hover {
    background-color: #a7fffa;
}

#login-button .btn-text {
    transition: opacity 0.2s ease;
    display: block;
}

#login-button.loading {
    pointer-events: none;
    opacity: 0.9;
}

#login-button.loading .btn-text {
    opacity: 0;
}

#login-button.loading::after {
    content: "";
    position: absolute;
    width: 24px;
    height: 24px;
    border: 3px solid white;
    border-top-color: #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    top: 50%;
    left: 50%;
    margin-top: -12px;
    margin-left: -12px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.separator {
    display: flex;
    align-items: center;
    text-align: center;
    position: relative;
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
}
.separator::before,
.separator::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin: 0 20px;
}

.social-button {
    width: 100%;
    height: 50px;
    border-radius: 12px;
    background-color: white;
    border: 1px solid rgba(180, 184, 204, 0.28);
    color: black;
    cursor: pointer;
    padding: 14px;
    text-decoration: none;
    transition: 0.4s ease-in-out;
}

.vk {
    background-color: #0077FF;
    color: white;
}

.social-button:hover {
    background-color: rgba(180, 184, 204, 0.2);
    border: 1px solid rgba(180, 184, 204, 0.28);
    color: white;
}

.button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 100%;
}

.button-container img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.vk .button-container img {
    border-radius: 5px;
}

.button-container span {
    font-size: 1.125rem;
}

.policy-warning {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
}

.policy-warning a {
    color: rgba(255, 255, 255, 0.7);
}

@media screen and (max-width: 1024px) {
    .login-container h1 {
        font-size: 1.625rem;
    }
    .login-container label {
        font-size: 1rem;
    }
    #login-form div input {
        font-size: 1rem;
        height: 45px;
    }
    #login-button {
        font-size: 1rem;
        height: 45px;
    }
    #login-form {
        gap: 12px;
    }
    .social-button {
        height: 45px;
    }
    .button-container span {
        font-size: 1rem;
    }
}

@media screen and (max-width: 768px) {
    .login-container {
        width: 90%;
    }
    .login-container h1 {
        font-size: 1.5rem;
    }
}

@media screen and (max-width: 500px) {
    .login-container h1 {
        font-size: 1.25rem;
    }
    .login-container label {
        font-size: 0.875rem;
    }
    #login-form div input {
        font-size: 0.9375rem;
    }
    .policy-warning {
        font-size: 0.9375rem;
    }
}