
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}
body {
    overflow: hidden;
}

.container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.6);
}
.background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}
.auth-container-with-description {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 8%;
}

.splash-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #FFFFFF;
    z-index: 1000;
}
.splash-icon {
    width: 100%;
    height: auto;
    max-width: 60%;
    object-fit: contain;
    animation: scaleAnimation 5s forwards;
}
.letters-container {
    display: flex;
    margin-top: 1%;
}
.letter {
    font-size: 6vw;
    font-weight: bold;
    color: #6EB4FF;
    margin: 0 1%;
    opacity: 0;
    animation: letterAnimation 0.6s forwards;
}
.letter:nth-child(1) { animation-delay: 0s; }
.letter:nth-child(2) { animation-delay: 0.3s; }
.letter:nth-child(3) { animation-delay: 0.6s; }
.letter:nth-child(4) { animation-delay: 0.9s; }
.letter:nth-child(5) { animation-delay: 1.2s; }
.letter:nth-child(6) { animation-delay: 1.5s; }
.letter:nth-child(7) { animation-delay: 1.8s; }
@keyframes scaleAnimation {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}
@keyframes letterAnimation {
    0% {
        opacity: 0;
        transform: translateY(5%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.description-container {
    position: absolute;
    top: 8%;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 10%;
    text-align: center;
    width: 100%;
}
.description-title {
    font-size: 8vw;
    font-weight: bold;
    color: #FFFFFF;
    margin-bottom: 8%;
    text-shadow:
        -0.05em -0.05em 0 rgba(0, 0, 0, 0.3),
        0.05em -0.05em 0 rgba(0, 0, 0, 0.3),
        -0.05em 0.05em 0 rgba(0, 0, 0, 0.3),
        0.05em 0.05em 0 rgba(0, 0, 0, 0.3);
    width: 80%;
    line-height: 100%;
}

.description-subtitle {
    font-size: 5vw;
    color: #FFFFFF;
    text-shadow:
        -0.05em -0.05em 0 rgba(0, 0, 0, 0.3),
        0.05em -0.05em 0 rgba(0, 0, 0, 0.3),
        -0.05em 0.05em 0 rgba(0, 0, 0, 0.3),
        0.05em 0.05em 0 rgba(0, 0, 0, 0.3);
    width: 80%;
    line-height: 120%;
    margin-bottom: 10%;
}


.auth-button {
    width: 80%;
    max-width: none;
    height: 8vw;
    min-height: 40px;
    max-height: 50px;
    border-radius: 2vw;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 4%;
    margin-bottom: 4%;
    cursor: pointer;
    border: none;
    font-size: 4vw;
    font-weight: 600;
    box-shadow: 0 1% 2% rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}
.auth-button:disabled {
    cursor: not-allowed;
    background-color: #A9A9A9 !important;
}
.vk-button {
    background-color: #0077FF;
    color: white;
}
.google-button {
    background-color: #D4AF37;
    color: white;
}
.email-button {
    background-color: #0077FF;
    color: white;
    margin-bottom: 10%;
}
.email-button-active {
    background-color: #FFFFFF;
    color: rgba(0, 0, 0, 0.5);
    border: 0.2vw solid rgba(0, 0, 0, 0.1);
}
.email-button-text-active {
    color: rgba(0, 0, 0, 0.5);
}

.checkboxes-container {
    background-color: rgba(255, 255, 255, 0.4);
    border-radius: 2vw;
    padding: 2.5%;
    margin-bottom: 2%;
    width: 80%;
    max-width: none;
}
.checkbox-row {
    display: flex;
    align-items: center;
    margin-bottom: 2.5%;
}
.custom-checkbox {
    width: 5vw;
    height: 5vw;
    min-width: 20px;
    min-height: 20px;
    border-radius: 0.75vw;
    border: 0.3vw solid #808080;
    margin-right: 2%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
.custom-checkbox.checked {
    border-color: #D4AF37;
    background-color: #D4AF37;
}
.custom-checkbox.checked::after {
    content: "✓";
    color: white;
    font-size: 3vw;
    font-weight: bold;
}
.checkbox-text {
    flex: 1;
    font-size: 2.5vw;
    color: #333;
    line-height: 3vw;
}
.regular-text {
    color: rgba(0, 0, 0, 0.5);
}
.link-text {
    color: #000000;
    text-decoration: underline;
    cursor: pointer;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1001;
}
.modal-container {
    background-color: white;
    padding: 5%;
    border-radius: 2.5%;
    max-height: 80%;
    width: 90%;
    max-width: none;
    position: relative;
}
.modal-content {
    margin-top: 7.5%;
    overflow-y: auto;
    max-height: 60vh;
}
.close-button {
    position: absolute;
    right: 2.5%;
    top: 2.5%;
    cursor: pointer;
    font-size: 6vw;
    color: rgba(0, 0, 0, 0.5);
}
.loading-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5%;
}

.spinner {
    width: 10vw;
    height: 10vw;
    min-width: 40px;
    min-height: 40px;
    border: 1vw solid rgba(110, 180, 255, 0.3);
    border-radius: 50%;
    border-top-color: #6EB4FF;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.email-dialog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1002;
}
.email-dialog {
    background-color: white;
    padding: 5%;
    border-radius: 2.5%;
    width: 90%;
    max-width: none;
}
.email-dialog-title {
    font-size: 4.5vw;
    font-weight: bold;
    margin-bottom: 3.75%;
    text-align: center;
}
.email-input {
    width: 100%;
    padding: 2.5%;
    border: 0.2vw solid #ccc;
    border-radius: 1.25vw;
    margin-bottom: 3.75%;
}
.email-dialog-buttons {
    display: flex;
    justify-content: space-between;
}
.dialog-button {
    padding: 2.5% 5%;
    border-radius: 1.25vw;
    cursor: pointer;
    border: none;
    font-size: 3.5vw;
}
.dialog-button-cancel {
    background-color: #f1f1f1;
    color: #333;
}
.dialog-button-submit {
    background-color: #6EB4FF;
    color: white;
}


@media (min-width: 768px) {
    .container {
        padding: 2%;
    }
    
    .auth-container-with-description {
        max-width: 400px;
        margin: 0 auto;
        padding-bottom: 5%;
        justify-content: center;
    }
    
    .description-container {
        position: relative;
        top: auto;
        padding: 0;
        margin-bottom: 30px;
    }
    
    .description-title {
        font-size: 32px;
        margin-bottom: 20px;
        width: 100%;
        line-height: 1.2;
        color: #FFFFFF;
        text-shadow:
            -0.5px -0.5px 0 rgba(0, 0, 0, 0.1),
            0.5px -0.5px 0 rgba(0, 0, 0, 0.1),
            -0.5px 0.5px 0 rgba(0, 0, 0, 0.1),
            0.5px 0.5px 0 rgba(0, 0, 0, 0.1);
    }

    .description-subtitle {
        font-size: 18px;
        width: 100%;
        line-height: 1.4;
        margin-bottom: 30px;
        color: #FFFFFF;
        text-shadow:
            -0.5px -0.5px 0 rgba(0, 0, 0, 0.1),
            0.5px -0.5px 0 rgba(0, 0, 0, 0.1),
            -0.5px 0.5px 0 rgba(0, 0, 0, 0.1),
            0.5px 0.5px 0 rgba(0, 0, 0, 0.1);
    }

    
    .auth-button {
        width: 100%;
        height: 45px;
        border-radius: 10px;
        padding: 0 15px;
        margin-bottom: 12px;
        font-size: 16px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
    
    .email-button {
        margin-bottom: 30px;
    }
    
    .checkboxes-container {
        width: 100%;
        border-radius: 10px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .checkbox-row {
        margin-bottom: 12px;
    }
    
    .custom-checkbox {
        width: 20px;
        height: 20px;
        border-radius: 4px;
        border: 2px solid #808080;
        margin-right: 10px;
    }
    
    .custom-checkbox.checked::after {
        font-size: 14px;
    }
    
    .checkbox-text {
        font-size: 14px;
        line-height: 1.4;
    }
    
    .modal-container {
        max-width: 500px;
        padding: 25px;
        border-radius: 10px;
    }
    
    .close-button {
        font-size: 24px;
        right: 15px;
        top: 15px;
    }
    
    .modal-content {
        margin-top: 20px;
    }
    
    .loading-container {
        padding: 20px;
    }
    
    .spinner {
        width: 40px;
        height: 40px;
        border: 3px solid rgba(110, 180, 255, 0.3);
        border-top-color: #6EB4FF;
    }
    
    .email-dialog {
        max-width: 400px;
        padding: 25px;
        border-radius: 10px;
    }
    
    .email-dialog-title {
        font-size: 20px;
        margin-bottom: 15px;
    }
    
    .email-input {
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 5px;
        margin-bottom: 15px;
    }
    
    .email-dialog-buttons {
        display: flex;
        justify-content: space-between;
    }
    
    .dialog-button {
        padding: 8px 16px;
        border-radius: 5px;
        font-size: 14px;
    }
    
    .splash-icon {
        max-width: 300px;
    }
    
    .letters-container {
        margin-top: 10px;
    }
    
    .letter {
        font-size: 48px;
        margin: 0 8px;
    }
}