/**************************************************************************************************************
 * General
 **************************************************************************************************************/
@font-face {
    font-family: Lato;
    src: url(Lato-Regular.ttf);
    font-weight: 400;
}
@font-face {
    font-family: Lato;
    src: url(Lato-Bold.ttf);
    font-weight: 500;
}
@font-face {
    font-family: Lato;
    src: url(Lato-Bold.ttf);
    font-weight: 600;
}

* {
    margin: 0;
    padding: 0;
    font-size: 16px;
    font-family: Lato;
}

ul {
    list-style: none;
}

body {
    background: #27AE60;
}

fieldset {
    position: relative;
    display: flex;
    flex-direction: column;
    border: none;
    margin-bottom: 32px;
}

label {
    margin-bottom: 8px;
    font-size: 0.75em;
    font-weight: 600;
    color: rgba(0, 0, 0, .3);
    letter-spacing: .03em;
}

#notification-bubble {
    opacity: 0;
    z-index: 100;
    position: absolute;
    right: 32px;
    bottom: 32px;
    padding: 16px;
    border-radius: 6px;
    color: white;
    background: #27AE60;
}

.view {
    position: absolute;
    width: 100vw;
    height: 100vh;
}

.text-input {
    height: 52px;
    padding-bottom: 4px;
    width: 526px;
    padding-left: 24px;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
    border: none;
    font-size: 1em;
    font-weight: 400;
    color: rgba(0, 0, 0, .6);
}

.btn-main-action {
    height: 56px;
    text-align: center;
    border: none;
    outline: none;
    border-radius: 3px;
    font-size: .875em;
    font-weight: 600;
    color: white;
    border: 1px solid rgba(0, 0, 0, .16);
    background: #27AE60;
    transition: all .1s ease-in-out;
    cursor: pointer;
}

.btn-main-action:hover {
    background: #24A45A;
}

.btn-sub-action {
    height: 56px;
    text-align: center;
    border: 1px solid rgba(0, 0, 0, .3);
    outline: none;
    border-radius: 3px;
    font-size: .875em;
    font-weight: 600;
    color: rgba(0, 0, 0, .6);
    background: rgba(0, 0, 0, 0);
    transition: all .1s ease-in-out;
    cursor: pointer;
}

.btn-sub-action:hover {
    background: rgba(0, 0, 0, .05);
}

.btn-sub-action.white {
    border: none;
    background: white;
}

.input-field-handle {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 23px;
    right: 0;
    width: 56px;
    height: 56px;
    background: #27AE60;
    border-radius: 3px;
    border: none;
    outline: none;
}

.input-field-handle-double {
    display: flex;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    position: absolute;
    top: 23px;
    right: 0;
    width: 56px;
    height: 56px;
    border-radius: 3px;
    border: none;
    outline: none;
    cursor: pointer;
}

.input-field-handle-double .top {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 23px;
    width: 56px;
    height: 27.5px;
    border-top-left-radius: 3px;
    border-top-right-radius: 3px;
    border: none;
    border-bottom: 1px rgba(255, 255, 255, .4) solid;
    outline: none;
    color: white;
    background: #27AE60;
}

.input-field-handle-double .bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    top: 52px;
    width: 56px;
    height: 27.5px;
    border-bottom-left-radius: 3px;
    border-bottom-right-radius: 3px;
    border: none;
    outline: none;
    color: white;
    background: #27AE60;
}

.input-field-handle-double .top:hover,
.input-field-handle-double .bottom:hover {
    background: #25A75C;
}

.input-field-handle-double .top:active,
.input-field-handle-double .bottom:active {
    background: #219F56;
}

.header {
    z-index: 11;
    position: absolute;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 130px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
    background: #fafafa;
}

.header .title {
    z-index: 1;
    position: absolute;
    width: 100%;
    text-align: center;
    top: 52px;
    font-weight: 300;
    font-size: 1.875em;
    color: rgba(44, 62, 80, .9);
}

.btn-logout {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom-left-radius: 3px;
    background: rgba(0, 0, 0, .1);
    color: rgba(0, 0, 0, .6);
    font-size: .875em;
    font-weight: 600;
    height: 48px;
    width: 112px;
    outline: none;
    border: none;
    transition: all .1s ease-in-out;
    cursor: pointer;
}

.btn-logout:hover {
    background: rgba(0, 0, 0, .15);
}


/**************************************************************************************************************
 * 3D Box
 **************************************************************************************************************/
.scene {
    position: absolute;
    z-index: 6;
    width: 100vw;
    left: 0;
    top: 0;
    height: 100vh;
    perspective: 100vw;
    overflow: hidden;
}

.box {
    width: 100vw;
    height: 100vh;
    position: relative;
    transform-style: preserve-3d;
    transform: translateZ(-50vw);
    transition: transform .5s;
}

.box.show-bottom { transform: translateZ(-50vw) rotateX(90deg); }
.box.show-front  { transform: translateZ(-50vw) rotateX(0deg); }
.box.show-back   { transform: translateZ(0) rotateY(-180deg); }
.box.show-right  { transform: translateZ(-50vw) rotateY(-90deg); }
.box.show-left   { transform: translateZ(-45vw) rotateY(90deg); }
.box.show-top    { transform: translateZ(-50vw) rotateX(-90deg); }

.box__face {
    position: absolute;
}

.box__face--front,
.box__face--back {
    width: 100vw;
    height: 100vh;
}

.box__face--right,
.box__face--left {
    width: 100vw;
    height: 100vh;
}

.box__face--top,
.box__face--bottom {
    width: 100vw;
    height: 100vh;
}

.box__face--front  {}
.box__face--right {}
.box__face--back   {
    display: none;
}
.box__face--left   {
    display: none;
}
.box__face--top    {}
.box__face--bottom {}

.box__face--front  { transform: rotateY(  0deg) translateZ( 50vh); }
.box__face--bottom { transform: rotateX(-90deg) translateZ(50vh); }
.box__face--right  { transform: rotateY( 90deg) translateZ(50vh); }

.box__face--back   { transform: rotateY(180deg) translateZ( 45vh); }

.box__face--left   { transform: rotateY(-90deg) translateZ(22.5vw); }

.box__face--top    { transform: rotateX( 90deg) translateZ(50vh); }


/**************************************************************************************************************
 * Login
 **************************************************************************************************************/
#login-view {
    display: flex;
    z-index: 10;
    justify-content: center;
    align-items: center;
}

#login-view .login-box {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    width: 320px;
    margin-top: -128px;
    padding: 64px;
    border-radius: 6px;
}

#login-view h1 {
    font-size: 3em;
    color: rgba(255, 255, 255, 1);
    font-weight: 500;
    margin-bottom: 48px;
}

#login-view .password-field {
    z-index: 10;
    width: 100%;
    margin-bottom: 32px;
    border-radius: 3px;
    background: white;
    box-shadow: 0 1px 2px 1px rgba(0, 0, 0, .3);
}

#login-view .btn-login {
    z-index: 11;
    top: 169px;
    right: 52px;
    background: white;
    transform: rotateZ(-90deg);
}

#login-view .wrong-password {
    display: flex;
    opacity: 0;
    margin-top: -72px;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#login-view .wrong-password p {
    width: 100%;
    color: white;
    font-size: 1em;
    font-weight: 600;
    margin-bottom: 48px;
}

#login-view .wrong-password .btn-sub-action {
    border: 1px solid white;
    color: white;
    width: 160px;
}