﻿/* ------------------------------------ */
/* Zmienne CSS */
/* ------------------------------------ */

:root {
    --primary-color: #007bff;
    --secondary-color: #1362a2;
    --text-color: #f5f5f5;
    --dark-text-color: #1d3f50;
    --font-family: Poppins, 'Segoe UI', Verdana, Tahoma, Arial;
    --border-radius: 5px;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 400;
    font-style: normal;
    src: url('/App_Css/fonts/poppins-regular.ttf') format('truetype');
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    font-weight: 600;
    font-style: normal;
    src: url('/App_Css/fonts/poppins-semibold.ttf') format('truetype');
    font-display: swap;
}



/* ------------------------------------ */
/* Ogólne style i ustawienia strony */
/* ------------------------------------ */

/* Ustawienia dla elementu body */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
}


/* Ustawienia dla kontenera głównego */
#Container {
    background-image: linear-gradient( rgba(21, 35, 52, 0.4), rgba(21, 35, 52, 0.9) ),url("/Images/page-background.jpg"); /* Tło z gradientem i obrazem */
    background-position: center center; /* Wyśrodkowanie tła */
    background-size: cover; /* Dopasowanie rozmiaru tła do kontenera */
    display: flex; /* Użycie flexboxa */
    align-items: center; /* Wyśrodkowanie elementów w pionie */
    justify-content: center; /* Wyśrodkowanie elementów w poziomie */

    display: flex;
    flex-direction: column;
    flex: 1;
    align-items: center;
    justify-content: center;
    font-family: var(--font-family);
    height: 100vh;
}

/* ------------------------------------ */
/* Style dla przycisku */
/* ------------------------------------ */

.dl-button {
    /* Kolorystyka */
    background: var(--primary-color);
    color: var(--text-color);
    /* Typografia */
    font-family: var(--font-family);
    font-weight: 200;
    font-size: 1.65em;
    text-decoration: none;
    text-align: center;
    text-indent: 0;
    letter-spacing: 1px;
    /* Układ */
    position: relative;
    display: inline-block;
    vertical-align: middle;
    white-space: nowrap;
    padding: 5px 0px;
    margin-top: 15px;
    width: 100%;
    min-width: 90px;
    box-sizing: content-box; /* Możliwe, że powinno być border-box */
    overflow: visible;
    cursor: pointer;
    /* Obramowanie */
    border: none;
    border-radius: var(--border-radius);
    transition: .2s all;
}

    .dl-button:hover {
        background-color: var(--secondary-color);
        color: #fff;
        transform: translateY(-2px);
        box-shadow: 0px 0px 5px rgba(18, 105, 176, .8);
    }

    .dl-button:focus {
        background-color: rgb(18, 105, 176);
        box-shadow: 0px 2px 5px rgba(18, 105, 176, .8), inset 2px 2px 7px rgba(0,0,0,.2);
        transform: translateY(0px);
        outline: none;
    }


.dl-buttonAnuluj {
    background: darkred;
}
    .dl-buttonAnuluj:hover {
        background: red;
    }

/* ------------------------------------ */
/* Style dla głównego okna */
/* ------------------------------------ */
#mainwindow {
    display: grid;
    grid-template-columns: 128px 1fr;
    place-items: center;
    gap: 10px;
    min-width: 400px;
    width: 40%;
    max-width: 600px;
    min-height: 250px;
    margin: auto;
    padding: 2%;
    box-sizing: border-box;
    transform: translateY(50px);
    opacity: 0;
    transition: .3s all;
    /* Kolorystyka */
    background-color: whitesmoke;
    /* Obramowanie */
    border: 1px solid silver;
    border-radius: 15px;
    /* Cień */
    box-shadow: 0px 10px 25px 5px rgba(0,0,0,0.75);
    /* Typografia */
    font-size: 1em;
    animation-duration: .5s;
    animation-name: slidein;
    animation-fill-mode: forwards;
}


.mainwindowColumn {
    display: flex;
    flex-direction: column;
    align-items: center;
}


@keyframes slidein {
    0% {
        transform: translateY(50px);
        opacity: .1;
    }

    25% {
        opacity: .5;
    }

    100% {
        transform: translateY(0px);
        opacity: 1;
    }
}

/* ------------------------------------ */
/* Style dla rzędów formularza */
/* ------------------------------------ */

.dlRow {
    margin: 0;
    padding: 5px;
}

    .dlRow input {
        width: 100%;
        font-size: 1.65em;
        font-family: var(--font-family);
        font-weight: 200;
        border-color: silver;
    }

.dlRowTop {
    float: left;
}

/* ------------------------------------ */
/* Style dodane przez Tomka (dotyczące logowania) */
/* ------------------------------------ */

/* Ukrywanie elementu oczekiwania podczas logowania */
.tom-login ~ #myWait {
    background-color: transparent;
    box-shadow: none;
    border: none;
    top: 50%;
    left: 50%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

/* Zmiana koloru tła body podczas logowania */
.tom-login #ctl00_body {
    background-color: #4f5a66 !important;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    width: 100%;
    margin: 0px;
}

.tom-login .dlRowTop {
    max-width: 22%;
    margin-top: 50px;
    margin-left: 3%;
}

    .tom-login .dlRowTop img {
        max-width: 100%;
        width: 96px;
    }

.tom-login label {
    padding-left: 5px;
    text-transform: uppercase;
    font-size: .85em;
    letter-spacing: 1px;
    font-weight: 500;
    color: var(--dark-text-color);
}

.tom-login input {
    margin: 2px 0;
    padding: 3px 6px;
    box-sizing: border-box;
    border-radius: var(--border-radius);
    transition: .2s all;
    outline: none;
    border-style: solid;
    border-width: 1px !important;
}

.tom-login .ssTextBox:focus {
    background-color: #fff;
}

.tom-login input:focus {
    box-shadow: 0px 0px 3px var(--primary-color);
    border-color: transparent;
}

/* Style dla logo w prawym dolnym rogu */
.tom-logo-rightbottom {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 4%;
}

    .tom-logo-rightbottom img {
        max-width: 100%;
    }

.tom-noFloat {
    font-size: 0.9em;
    width: 80%;
}

/* ------------------------------------ */
/* Media Queries */
/* ------------------------------------ */

/* Dla ekranów o szerokości do 1800px */
@media screen and (max-width:1800px) {
    .tom-login input {
        font-size: 1.5em;
    }
}

/* Dla ekranów o szerokości do 1600px */
@media screen and (max-width:1600px) {
    .tom-login input {
        font-size: 1.35em;
    }

    .tom-logo-rightbottom {
        width: 5%;
    }

    .tom-login label {
        font-size: .8em
    }
}

/* Dla ekranów o szerokości do 1024px */
@media screen and (max-width:1024px) {
    #mainwindow {
        width: 40%;
    }

    .tom-login input {
        font-size: 1.2em;
    }

    .tom-noFloat {
        width: 65%;
        max-width: 280px;
    }

    .tom-logo-rightbottom {
        width: 7%;
    }
}

/* Dla ekranów o szerokości do 767px */
@media screen and (max-width:767px) {
    #mainwindow {
        display: flex;
        flex-direction: column; /* Kolumny zmieniają się na wiersze */
        align-items: center; /* Wyśrodkowanie treści w poziomie */
    }

    .mainwindowColumn {
        width: 100%; /* Kolumny zajmują pełną szerokość */
        text-align: center; /* Wyśrodkowanie treści w każdej kolumnie */
        margin-bottom: 20px; /* Odstęp między kolumnami */
    }

    .dlRow {
        display: flex;
        flex-direction: column; /* Elementy w wierszach układają się pionowo */
        align-items: start; /* Wyśrodkowanie treści w pionie */
        margin-bottom: 10px; /* Odstęp między wierszami */
    }

    .ssTextBox {
        width: calc(100% - 40px); /* Dopasowanie szerokości pól tekstowych do ekranu */
        max-width: 300px; /* Maksymalna szerokość dla pól tekstowych */
        margin-top: 5px;
    }

    #dl-button {
        /*width: calc(100%);*/ /* Dopasowanie przycisku do ekranu */
        text-align: center;
        /*padding: 10px;*/
        cursor: pointer;
    }
}


/* ------------------------------------ */
/* Style dla animacji ładowania */
/* ------------------------------------ */

@keyframes ldio-6179as66vby {
    0% {
        opacity: 1
    }

    100% {
        opacity: 0
    }
}

.ldio-6179as66vby div {
    left: 97px;
    top: 10px;
    position: absolute;
    animation: ldio-6179as66vby linear 1s infinite;
    background: #ff6a13;
    width: 6px;
    height: 20px;
    border-radius: 0px / 0px;
    transform-origin: 3px 90px;
    box-sizing: content-box;
}

    .ldio-6179as66vby div:nth-child(1) {
        transform: rotate(0deg);
        animation-delay: -0.9583333333333334s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(2) {
        transform: rotate(15deg);
        animation-delay: -0.9166666666666666s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(3) {
        transform: rotate(30deg);
        animation-delay: -0.875s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(4) {
        transform: rotate(45deg);
        animation-delay: -0.8333333333333334s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(5) {
        transform: rotate(60deg);
        animation-delay: -0.7916666666666666s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(6) {
        transform: rotate(75deg);
        animation-delay: -0.75s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(7) {
        transform: rotate(90deg);
        animation-delay: -0.7083333333333334s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(8) {
        transform: rotate(105deg);
        animation-delay: -0.6666666666666666s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(9) {
        transform: rotate(120deg);
        animation-delay: -0.625s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(10) {
        transform: rotate(135deg);
        animation-delay: -0.5833333333333334s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(11) {
        transform: rotate(150deg);
        animation-delay: -0.5416666666666666s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(12) {
        transform: rotate(165deg);
        animation-delay: -0.5s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(13) {
        transform: rotate(180deg);
        animation-delay: -0.4583333333333333s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(14) {
        transform: rotate(195deg);
        animation-delay: -0.4166666666666667s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(15) {
        transform: rotate(210deg);
        animation-delay: -0.375s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(16) {
        transform: rotate(225deg);
        animation-delay: -0.3333333333333333s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(17) {
        transform: rotate(240deg);
        animation-delay: -0.2916666666666667s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(18) {
        transform: rotate(255deg);
        animation-delay: -0.25s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(19) {
        transform: rotate(270deg);
        animation-delay: -0.20833333333333334s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(20) {
        transform: rotate(285deg);
        animation-delay: -0.16666666666666666s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(21) {
        transform: rotate(300deg);
        animation-delay: -0.125s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(22) {
        transform: rotate(315deg);
        animation-delay: -0.08333333333333333s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(23) {
        transform: rotate(330deg);
        animation-delay: -0.041666666666666664s;
        background: #ff6a13;
    }

    .ldio-6179as66vby div:nth-child(24) {
        transform: rotate(345deg);
        animation-delay: 0s;
        background: #ff6a13;
    }

.loadingio-spinner-spinner-8d4bstudmew {
    width: 200px;
    height: 200px;
    display: inline-block;
    overflow: hidden;
    background: none;
}

.ldio-6179as66vby {
    width: 100%;
    height: 100%;
    position: relative;
    transform: translateZ(0) scale(1);
    backface-visibility: hidden;
    transform-origin: 0 0;
}

/* ------------------------------------ */
/* Komunikaty błędów */
/* ------------------------------------ */

.loginKomunikat {
    font-size: 80%;
    color: darkred;
}


.ssLogo {
    text-align: center;
    position: absolute;
    bottom: 3%;
    right: 3%;
}


.loader-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.spinner {
    border: 8px solid #ddd;
    border-top: 8px solid #ff6a13;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    animation: spin 1.5s linear infinite;
    margin-bottom: 20px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
