html {
    overflow: hidden;
    height: 100vh;
    font-size: 18px;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 100%;
    background-color: #cfcfcf;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    font-weight: 400;
    color: #28166e;
}

::selection {
    color: #ffffff;
    background-color: #28166e;
}

.title {
    position: relative;
    text-align: center;
    width: 100%;
}

h1 {
    font-size: 4rem;
    padding: 10px;
    margin-top: 0;
    background: -webkit-linear-gradient(0deg, #28166e, #0c91d9);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 2rem;
}

#submit {
    margin-top: 1rem;
}

#obrazec {
    background-color: #5f5f5fcc;
    border-radius: 10px;
    opacity: 1;
    width: 40%;
    position: relative;
}

/* From uiverse.io by @alexruix */
input[type=text],
input[type=password] {
    width: 100%;
    text-align: center;
    line-height: 2.5rem;
    font-size: 1.5rem;
    border: 2px solid transparent;
    border-bottom-color: #ffffff;
    padding: .2rem 0;
    outline: none;
    background-color: transparent;
    color: #ffffff;
    transition: .3s cubic-bezier(0.645, 0.045, 0.355, 1);
    margin: .5rem;
    box-sizing: border-box;
}

input:focus,
input:hover {
    outline: none;
    padding: .2rem 1rem;
    border-radius: 1rem;
    border-color: #ffffff;
}

input::placeholder {
    color: #ffffff66;
}

input:focus::placeholder {
    opacity: 0;
    transition: opacity .3s;
}

button {
    position: relative;
    padding: 1em 1.8em;
    outline: none;
    border: 1px solid transparent;
    background: #28166e;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.2rem;
    overflow: hidden;
    transition: 0.2s;
    border-radius: 20px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    box-shadow: 0 0 10px #ffffff, 0 0 25px #ffffff, 0 0 50px #ffffff;
    transition-delay: 0.6s;
    color: white;
}

button span {
    position: absolute;
}

button span:nth-child(1) {
    top: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff);
}

button:hover span:nth-child(1) {
    left: 100%;
    transition: 0.7s;
}

button span:nth-child(3) {
    bottom: 0;
    right: -100%;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #ffffff);
}

button:hover span:nth-child(3) {
    right: 100%;
    transition: 0.7s;
    transition-delay: 0.35s;
}

button span:nth-child(2) {
    top: -100%;
    right: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(180deg, transparent, #ffffff);
}

button:hover span:nth-child(2) {
    top: 100%;
    transition: 0.7s;
    transition-delay: 0.17s;
}

button span:nth-child(4) {
    bottom: -100%;
    left: 0;
    width: 2px;
    height: 100%;
    background: linear-gradient(360deg, transparent, #ffffff);
}

button:hover span:nth-child(4) {
    bottom: 100%;
    transition: 0.7s;
    transition-delay: 0.52s;
}

button:focus {
    color: white;
}

button:active {
    background: #0c91d966;
    color: #ffffff;
    box-shadow: 0 0 8px #0c91d9, 0 0 8px #0c91d9, 0 0 8px #ffffff;
    transition: 0.1s;
}

button:active span:nth-child(1) span:nth-child(2) span:nth-child(2) span:nth-child(2) {
    transition: none;
    transition-delay: none;
}

.container {
    padding: 2rem;
}

#nope {
    color: #fff; border-radius: 10px; background-color: red; width: fit-content; padding: 0.4rem 0.8rem; margin: 0.5rem 0rem;
}

@media (max-width: 1200px) {

    html {
        font-size: 14px;
    }

    #obrazec {
        width: 50%;
    }
}

@media (max-width: 768px) {

    html {
        font-size: 12px;
    }
}

@media (max-width: 380px) {

    h1 {
        font-size: 3.5rem;
    }
}

@media (orientation: landscape) {

    @media (max-height: 512px) {

        html {
            font-size: 8px;
        }
    }
}

@media (orientation: portrait) {

    #obrazec {
        width: 80%;
    }
}