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

body {
    background: #ededed;
}

input,
button {
    border: none;
    outline: none;
    background: none;
}

.主体 {
    overflow: hidden;
    position: relative;
    width: 900px;
    height: 550px;
    margin: 100px auto;
    background: #fff;
}

.表单 {
    position: relative;
    width: 640px;
    height: 100%;
    transition: transform 1.2s ease-in-out;
    padding: 100px 30px 0;
}

.提交区块 {
    overflow: hidden;
    position: absolute;
    left: 640px;
    top: 0;
    width: 900px;
    height: 100%;
    padding-left: 260px;
    background: #fff;
    transition: transform 1.2s ease-in-out;
}
.主体.注册状态 .提交区块 {
    transform: translate3d(-640px, 0, 0);
}

button {
    display: block;
    margin: 0 auto;
    width: 260px;
    height: 36px;
    border-radius: 30px;
    color: #fff;
    font-size: 15px;
    cursor: pointer;
}

.图片区块 {
    overflow: hidden;
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 260px;
    height: 100%;
    padding-top: 360px;
}
.图片区块:before {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    width: 900px;
    height: 100%;
    background-image: url("http://demores.fofstudio.net/images/sections-3.jpg");
    background-size: cover;
    transition: transform 1.2s ease-in-out;
}
.图片区块:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
}
.主体.注册状态 .图片区块:before {
    transform: translate3d(640px, 0, 0);
}
.图片文本 {
    z-index: 2;
    position: absolute;
    left: 0;
    top: 50px;
    width: 100%;
    padding: 0 20px;
    text-align: center;
    color: #fff;
    transition: transform 1.2s ease-in-out;
}
.图片文本 h2 {
    margin-bottom: 10px;
    font-weight: normal;
}
.图片文本 p {
    font-size: 14px;
    line-height: 1.5;
}
.主体.注册状态 .图片文本.注册文本 {
    transform: translateX(520px);
}
.图片文本.登录文本 {
    transform: translateX(-520px);
}
.主体.注册状态 .图片文本.登录文本 {
    transform: translateX(0);
}
.图片按钮 {
    overflow: hidden;
    z-index: 2;
    position: relative;
    width: 100px;
    height: 36px;
    margin: 0 auto;
    background: transparent;
    color: #fff;
    text-transform: uppercase;
    font-size: 15px;
    cursor: pointer;
}
.图片按钮:after {
    content: "";
    z-index: 2;
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #fff;
    box-sizing: border-box;
    border-radius: 30px;
}
.图片按钮 span {
    position: absolute;
    left: 0;
    top: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
    transition: transform 1.2s;
}
.图片按钮 span.登录文本 {
    transform: translateY(-72px);
}
.主体.注册状态 .图片按钮 .登录文本 {
    transform: translateY(0);
}
.主体.注册状态 .图片按钮 .注册文本 {
    transform: translateY(72px);
}

h2 {
    width: 100%;
    font-size: 26px;
    text-align: center;
}

label {
    display: block;
    width: 260px;
    margin: 25px auto 0;
    text-align: center;
}
label span {
    font-size: 12px;
    color: #cfcfcf;
    text-transform: uppercase;
}

input {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding-bottom: 5px;
    font-size: 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.4);
    text-align: center;
}

.找回密码 {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #cfcfcf;
}

.登录注册按钮 {
    margin-top: 40px;
    margin-bottom: 20px;
    background: #d4af7a;
    text-transform: uppercase;
}

.登录区块 {
    transition-timing-function: ease-out;
}
.主体.注册状态 .登录区块 {
    transition-timing-function: ease-in-out;
    transition-duration: 1.2s;
    transform: translate3d(640px, 0, 0);
}

.注册区块 {
    transform: translate3d(-900px, 0, 0);
}
.主体.注册状态 .注册区块 {
    transform: translate3d(0, 0, 0);
}