<?xml version="1.0" encoding="UTF-8"?>
<window id="1156" type="dialog">
    <modality>modal</modality>
    <defaultcontrol always="true">7001</defaultcontrol>
    <coordinates>
        <left>460</left>
        <top>250</top>
        <width>1000</width>
        <height>580</height>
    </coordinates>
    <onload>ClearProperty(WCS.KraskaLogin.Title,Home)</onload>
    <animation effect="slide" start="0,1080" end="0,0" time="400" tween="cubic" easing="out">WindowOpen</animation>
    <animation effect="slide" start="0,0" end="0,1080" time="400" tween="cubic" easing="out">WindowClose</animation>
    <controls>
        <!-- Pozadí dialogu (ztmavení celé obrazovky) -->
        <control type="image">
            <left>-460</left>
            <top>-250</top>
            <width>1920</width>
            <height>1080</height>
            <texture colordiffuse="E0000000">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
            <animation effect="fade" start="0" end="100" time="300">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
        
        <!-- Hlavní pozadí dialogu -->
        <control type="image">
            <left>0</left>
            <top>0</top>
            <width>1000</width>
            <height>580</height>
            <texture border="10" colordiffuse="F0151515">special://home/addons/plugin.video.milionar/resources/media/white.png</texture>
        </control>
        
        <!-- Nadpis -->
        <control type="label">
            <left>20</left>
            <top>20</top>
            <width>960</width>
            <height>60</height>
            <font>font30</font>
            <textcolor>FFFFFFFF</textcolor>
            <shadowcolor>black</shadowcolor>
            <label>KRA.sk - Přihlášení</label>
            <align>center</align>
            <aligny>center</aligny>
            <animation effect="slide" start="0,-100" end="0,0" time="400" tween="cubic" easing="out">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="0,-100" time="300" tween="cubic" easing="in">WindowClose</animation>
        </control>
        
        <!-- Popis -->
        <control type="label">
            <left>50</left>
            <top>100</top>
            <width>900</width>
            <height>60</height>
            <font>font16</font>
            <textcolor>FFDDDDDD</textcolor>
            <align>center</align>
            <aligny>center</aligny>
            <label>Pro tuto akci jsou vyžadovány přihlašovací údaje ke KRA.sk.</label>
            <animation effect="fade" start="0" end="100" time="400" delay="100">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
        
        <!-- Skupina tlačítek s moderním designem -->
        <control type="group">
            <left>50</left>
            <top>180</top>
            <width>900</width>
            <height>120</height>
            <animation effect="slide" start="0,800" end="0,0" time="400" delay="200" tween="cubic" easing="out">WindowOpen</animation>
            <animation effect="slide" start="0,0" end="0,800" time="400" tween="cubic" easing="in">WindowClose</animation>
            
            <!-- Tlačítko Zadat údaje -->
            <control type="button" id="7001">
                <left>100</left>
                <top>15</top>
                <width>200</width>
                <height>90</height>
                <font>font16</font>
                <textcolor>FFFFFFFF</textcolor>
                <focusedcolor>FFFFFFFF</focusedcolor>
                <label>Zadat údaje</label>
                <align>center</align>
                <aligny>center</aligny>
                <onup>7003</onup>
                <ondown>7002</ondown>
                <onleft>7003</onleft>
                <onright>7002</onright>
                <!-- Pozadí bez focus -->
                <texturenofocus border="21" colordiffuse="FF333333">special://home/addons/plugin.video.milionar/resources/media/white.png</texturenofocus>
                <!-- Pozadí s focus -->
                <texturefocus border="21" colordiffuse="FF0078D4">special://home/addons/plugin.video.milionar/resources/media/white.png</texturefocus>
                <!-- Animace při focus -->
                <animation effect="slide" start="0,20" end="0,0" time="200" tween="cubic" easing="out" reversible="true">Focus</animation>
                <animation effect="slide" start="0,0" end="0,20" time="200" tween="cubic" easing="out" reversible="true">UnFocus</animation>
                <!-- Rámeček při focus -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>200</width>
                    <height>90</height>
                    <bordersize>4</bordersize>
                    <bordertexture colordiffuse="FF0078D4">special://home/addons/plugin.video.milionar/resources/media/white.png</bordertexture>
                    <visible>Control.HasFocus(7001)</visible>
                </control>
            </control>
            
            <!-- Tlačítko Návod -->
            <control type="button" id="7002">
                <left>350</left>
                <top>15</top>
                <width>200</width>
                <height>90</height>
                <font>font16</font>
                <textcolor>FFFFFFFF</textcolor>
                <focusedcolor>FFFFFFFF</focusedcolor>
                <label>Návod</label>
                <align>center</align>
                <aligny>center</aligny>
                <onup>7001</onup>
                <ondown>7003</ondown>
                <onleft>7001</onleft>
                <onright>7003</onright>
                <!-- Pozadí bez focus -->
                <texturenofocus border="21" colordiffuse="FF333333">special://home/addons/plugin.video.milionar/resources/media/white.png</texturenofocus>
                <!-- Pozadí s focus -->
                <texturefocus border="21" colordiffuse="FF0078D4">special://home/addons/plugin.video.milionar/resources/media/white.png</texturefocus>
                <!-- Animace při focus -->
                <animation effect="slide" start="0,20" end="0,0" time="200" tween="cubic" easing="out" reversible="true">Focus</animation>
                <animation effect="slide" start="0,0" end="0,20" time="200" tween="cubic" easing="out" reversible="true">UnFocus</animation>
                <!-- Rámeček při focus -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>200</width>
                    <height>90</height>
                    <bordersize>4</bordersize>
                    <bordertexture colordiffuse="FF0078D4">special://home/addons/plugin.video.milionar/resources/media/white.png</bordertexture>
                    <visible>Control.HasFocus(7002)</visible>
                </control>
            </control>
            
            <!-- Tlačítko Zavřít -->
            <control type="button" id="7003">
                <left>600</left>
                <top>15</top>
                <width>200</width>
                <height>90</height>
                <font>font16</font>
                <textcolor>FFFFFFFF</textcolor>
                <focusedcolor>FFFFFFFF</focusedcolor>
                <label>Zavřít</label>
                <align>center</align>
                <aligny>center</aligny>
                <onup>7002</onup>
                <ondown>7001</ondown>
                <onleft>7002</onleft>
                <onright>7001</onright>
                <!-- Pozadí bez focus -->
                <texturenofocus border="21" colordiffuse="FF333333">special://home/addons/plugin.video.milionar/resources/media/white.png</texturenofocus>
                <!-- Pozadí s focus - červené pro zavření -->
                <texturefocus border="21" colordiffuse="FFDC3545">special://home/addons/plugin.video.milionar/resources/media/white.png</texturefocus>
                <!-- Animace při focus -->
                <animation effect="slide" start="0,20" end="0,0" time="200" tween="cubic" easing="out" reversible="true">Focus</animation>
                <animation effect="slide" start="0,0" end="0,20" time="200" tween="cubic" easing="out" reversible="true">UnFocus</animation>
                <!-- Rámeček při focus - červený -->
                <control type="image">
                    <left>0</left>
                    <top>0</top>
                    <width>200</width>
                    <height>90</height>
                    <bordersize>4</bordersize>
                    <bordertexture colordiffuse="FFDC3545">special://home/addons/plugin.video.milionar/resources/media/white.png</bordertexture>
                    <visible>Control.HasFocus(7003)</visible>
                </control>
            </control>
        </control>
        
        <!-- Informační text v dolní části -->
        <control type="label">
            <left>50</left>
            <top>320</top>
            <width>900</width>
            <height>40</height>
            <font>font12</font>
            <textcolor>FFAAAAAA</textcolor>
            <align>center</align>
            <aligny>center</aligny>
            <label>Vaše údaje jsou uloženy pouze lokálně v Kodi</label>
            <animation effect="fade" start="0" end="100" time="400" delay="300">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
        
        <!-- Právní vyvazující text s autoscroll -->
        <control type="textbox">
            <left>30</left>
            <top>380</top>
            <width>940</width>
            <height>180</height>
            <font>font10</font>
            <textcolor>FF999999</textcolor>
            <align>justify</align>
            <autoscroll time="4000" delay="10000" repeat="5000">true</autoscroll>
            <label>PRÁVNÍ PROHLÁŠENÍ: KRA.sk (Stream Cinema) je služba třetí strany. Zadáním přihlašovacích údajů potvrzujete, že: (a) máte platný účet s aktivním předplatným u poskytovatele KRA.sk, (b) jste oprávněni k užívání této služby podle jejích podmínek, (c) veškerý obsah, ke kterému přistupujete, je legálně licencován, (d) autor tohoto doplňku nenese odpovědnost za způsob využití služby, (e) zavazujete se dodržovat platné právní předpisy týkající se autorského práva. Tento doplněk je poskytován "tak jak je" bez jakýchkoliv záruk.</label>
            <animation effect="fade" start="0" end="100" time="400" delay="400">WindowOpen</animation>
            <animation effect="fade" start="100" end="0" time="300">WindowClose</animation>
        </control>
    </controls>
</window>
