body,html{
margin: 0;
padding: 0;
    outline: none;
box-sizing: border-box;
    
}

body {
    font-family: sans-serif;
    background: #214482;

}


.box {
    position: relative;
    border-radius: 24px;
    width: 400px;          /*Šířka rámečku*/
    padding: 12px 12px;        /*Okraje*/
    padding-bottom: 15px;        /*Okraje dole*/
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
    background: #191919;
    text-align: center;
}


.box h1{
    color: orange;
    margin-bottom: 10px;
}

.light {
    position: absolute;
    width: 20%;
    margin-bottom: 10px;
    z-index: -1;
    left: 20%;
    top: 10px
}


/*form-result*/
.form-result{
    width: 80%;
    margin: 0 auto;
    padding: 10px;
    border-radius: 10px;
}

.error{
    background: #ac0000;
    color: #fff;
}


.box input[type="text"], .box input[type="password"], .box input[type="email"] { /*nastavení formuláře jmeno a heslo*/
    border: 0;
    background: #fff;
    display: block;
    margin: 1px auto;
    text-align: center;
    padding: 10px 10px;
    width: 200px;
    font-weight: 550;
    border-radius: 24px;   
}

.box input[type="passwordcontrol"]{

 background-color: #214482;
 box-shadow:0 0 2px rgba(204,0,0,0.5)
    
    
    
}





.box input[type="submit"]{  /*nastavení talčítka*/
    border: 0;
    background:  #214482;
    display: block;
    text-align: center;
    margin: 1px auto;
    padding: 10px 10px;
    width: 200px;
    font-weight: 500;
    font-size: 15px;
    border-radius: 24px;   
    background:  #214482;
    cursor: pointer;
}

/*při kliknutí změn parametry*/
.box input[type="text"]:focus, .box input[type="password"]:focus, .box input[type="email"]:focus {
    transition: 0.25s;
    background: #e0ffff;
    width: 220px;
}

/************** === Color data === **************/
.box input[type="text"]:required:valid, .box input[type="email"]:required:valid {
    box-shadow: 0 0 15px #5cd053;
    border-color: #28921f;
    border: 4px solid #28921f;
    transition: 0.25s;
    width: 220px;
}

/*při kliknutí změn parametry*/
.box input[type="text"]:focus:invalid, .box input[type="email"]:focus:invalid {
    box-shadow: 0 0 15px #d45252;
    border-color: #b03535;
    border: 4px solid #b03535;
    transition: 0.25s;
    width: 220px;
}
/* === end color data === */



/*při najetí kurzorem změn parametry*/
.box input[type="submit"]:hover {
    transition: background 0.3s;
    background: orange;
}

p {
    color: white;
    font-size: 10px
}

.box a {
    display: inline-block;
    margin-top: 30px;
    margin-left: 9px;
    text-decoration: none; /*odstraní podtržení odkazu*/
    color: wheat;         /*bílí text*/
    font-family: sans-serif;
    font-size: 15px;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 4px 8px;
    background: #8b2d38;
}

.box a:hover {
    display: inline-block;
    margin-top: 30px;
    margin-left: 9px;
    text-decoration: none; /*odstraní podtržení odkazu*/
    color: wheat;         /*bílí text*/
    font-family: sans-serif;
    font-size: 15px;
    border: 1px solid transparent;
    border-radius: 24px;
    padding: 4px 8px;
    transition: background 0.5s;
    background: orange;
}

.box .registrace {
    display: inline-block;
    font-size: 15px;
}



/* === Form hints === */
.form_hint {
    background: #d45252;
    border-radius: 3px 3px 3px 3px;
    color: white;
    padding: 1px 6px;
    z-index: 999; /* hints stay above all other elements */
    position: absolute;
    transform: translate(-50%,-350%);
    display: none;
}

    .form_hint::before {
        content: "\2BC6";
        content: ;
        color: #d45252;
        position: absolute;
        top: 10px;
        left: 50%;
    }

.box input:focus + .form_hint {
    display: inline;
}

.box input:required:valid + .form_hint {
    background: #28921f;
}

    .box input:required:valid + .form_hint::before {
        color: #28921f;
    }

/* === end === */