* {
    margin:0;
    padding:0;
    box-sizing:border-box;
}

html, body {
    background:#f7f1f1;
    font-size:1.1rem;
    font-family:'Quicksand', sans-serif;
    height:100%;
}

.fa {
    font-family: "Adobe Arabic";
}

.register form {
    display: block;
    background: #969cf166;
    box-shadow: 0px 0px 1px 1px #00000063;
    width: 100%;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,50%);
}

.register input,
.login input {
    font-family: "Century Gothic";
    direction: ltr;
}

.register .title {
    width: 392px;
    background: #cfd1f5;
    position: absolute;
    top: -62px;
    right: -1px;
    text-align: right;
    padding: 10px;
    font-size: 30px;
    color: #808080;
}

.login form {
    display: block;
    background: #969cf166;
    box-shadow: 0px 0px 1px 1px #00000029;
    width: 100%;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,75%);
}

.login .title {
    width: 392px;
    background: #cfd1f5;
    position: absolute;
    top: -52px;
    right: -1px;
    text-align: right;
    padding: 5px 10px;
    font-size: 30px;
    color: #808080;
    box-shadow: 0px -2px 3px 0px #00000033;
}

@keyframes strikeitem {
    to { width:calc(100% + 1rem); }
}

.todo#todolist {
    margin:4rem auto;
    padding:2rem 3rem 3rem;
    max-width:500px;
    background:#3156a9;
    color:#FFF;
    box-shadow:-20px -20px 0px 0px rgba(100,100,100,.1);
}
.todo#todolist h1 {
    /*text-align:center;*/
    font-weight:normal;
    font-size:2.6rem;
    letter-spacing:0.05em;
    border-bottom:1px solid rgba(255,255,255,.3);
}
.todo#todolist h1 span {
    display:block;
    font-size:0.8rem;
    margin-bottom:0.7rem;
    margin-left:3px;
    margin-top:0.2rem;
}

.todo#todolist .emptylist {
    margin-top:2.6rem;
    text-align:center;
    letter-spacing:.05em;
    font-style:italic;
    opacity:0.8;

}
.todo#todolist ul {
    margin-top:2.6rem;
    list-style:none;
}
.todo#todolist .todolist-move {
    transition: transform 1s;
}
.todo#todolist li {
    display:flex;
    margin:0 -3rem 4px;
    padding:0.5rem 3rem;
    justify-content:space-between;
    align-items:center;
    background:rgba(255,255,255,0.1);
}

.todo#todolist .actions {
    flex-shrink:0;
    padding-left:0.7em;
}
.todo#todolist .label {
    position:relative;
    transition:opacity .2s linear;
    font-size: 25px;
    text-align: right;
    white-space: unset;
}
.todo#todolist .done .label {
    opacity:.6;
}
.todo#todolist .done .label:before {
    content:'';
    position:absolute;
    top:50%;
    left:-.5rem;
    display:block;
    width:0%;
    height:1px;
    background:#FFF;
    animation:strikeitem .3s ease-out 0s forwards;
}
.todo#todolist .btn-picto {
    border:none;
    background:none;
    -webkit-appearance:none;
    cursor:pointer;
    color:#FFF;
}


/* FORM */
.todo form {
    margin-top:3rem;
    display:flex;
    flex-wrap:wrap;
}
.todo form label {
    min-width:100%;
    margin-bottom:.5rem;
    font-size:1.3rem;
}
.todo form input {
    flex-grow:1;
    border:none;
    background:#f7f1f1;
    padding:0 1.5em;
    font-size:initial;
}
.todo form button {
    padding:0 1.3rem;
    border:none;
    background:#2cb98b;
    color:white;
    text-transform:uppercase;
    font-weight:bold;
    border:1px solid rgba(255,255,255,.3);
    margin-left:5px;
    cursor:pointer;
    transition:background .2s ease-out;
}
.todo form button:hover {
    background:#2cb9aa;
}
.todo form input,
.todo form button {
    outline: none;
    height:3rem;
}

.todo [name=newitem]{
    font-size: 20px;
    color: #3156a9;
}

.todo button { outline: none; }

.todo span.exit {
    position: absolute;
    top: 20px;
    left: 28px;
    border: 1px solid red;
    padding: 2px 13px;
    font-size: 25px;
    background: red;
    color: #fff;
    box-shadow: -8px -8px 0px 0px rgba(183, 17, 17, 0.12);
    cursor: pointer;
}

.todo span.exit:hover {
    color: red;
    background: transparent;
}

.register .go-login {
    position: absolute;
    top: 20px;
    text-decoration: none;
    left: 28px;
    border: 1px solid #2d6d0d;
    padding: 2px 13px;
    font-size: 25px;
    background: #1d8410;
    color: #fff;
    box-shadow: -8px -8px 0px 0px rgba(58, 183, 17, 0.12);
    cursor: pointer;
}
.register .go-login:hover {
    color: #1d8410;
    background: transparent;
}

.login .go-register {
    position: absolute;
    top: 20px;
    text-decoration: none;
    left: 28px;
    border: 1px solid #1f226d;
    padding: 2px 13px;
    font-size: 25px;
    background: #1f226d;
    color: #fff;
    box-shadow: -8px -8px 0px 0px rgba(31, 34, 109, 0.12);
    cursor: pointer;
}
.login .go-register:hover {
    color: #1f226d;
    background: transparent;
}