/* https://codepen.io/lsgrrd/pen/ARxboe */

[class*="entypo-"]:before {
    font-family: 'entypo', sans-serif;
}

*,
*:before,
*:after {
    -moz-box-sizing: border-box;
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
}

h2 {
    color: rgba(255, 255, 255, .8);
    margin-left: 12px;
}

body {
    background: #272125;
    font-family: 'Roboto', sans-serif;
}

form {
    position: relative;
    width: 380px;
    height: auto;
    z-index: 20;
}

.inputUserIcon,
.inputPassIcon {
    color: white;
}

input {
    padding: 16px;
    border-radius: 7px;
    border: 0px;
    background: rgba(255, 255, 255, .2);
    display: block;
    margin: 15px 25px;
    width: 300px;
    color: white;
    font-size: 18px;
    height: 54px;
}

input:focus {
    outline-color: rgba(0, 0, 0, 0);
    background: rgba(255, 255, 255, .95);
    color: #e74c3c;
}

button {
    height: 50px;
    width: 130px;
    border: 0;
    background: #e74c3c;
    border-radius: 7px;
    margin: 20px 110px;
    padding: 10px;
    color: white;
    font-size: 15px;
}

.inputUserIcon {
    position: absolute;
    top: 70px;
    right: 80px;
}

.inputPassIcon {
    position: absolute;
    top: 140px;
    right: 80px;
}

input::-webkit-input-placeholder {
    color: white;
}

input:focus::-webkit-input-placeholder {
    color: #e74c3c;
}

.formWrapper {
    background: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 10px;
    width: 420px;
    margin: 150px auto 50px;
    z-index: 20;
    position: relative;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* CodePen Home CSS Wave Animation with a .png*/

@keyframes move_wave {
    0% {
        transform: translateX(0) translateZ(0) scaleY(1)
    }

    50% {
        transform: translateX(-25%) translateZ(0) scaleY(0.55)
    }

    100% {
        transform: translateX(-50%) translateZ(0) scaleY(1)
    }
}

/* 自製 */
.waveWrapper {
    overflow: hidden;
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}

.waveWrapperInner {
    position: absolute;
    width: 100%;
    overflow: hidden;
    height: 100%;
    bottom: -1px;
    background-image: linear-gradient(to top, #f39161 20%, #ea5456 80%);
}

.bgTop {
    z-index: 15;
    opacity: 0.5;
}

.bgMiddle {
    z-index: 10;
    opacity: 0.75;
}

.bgBottom {
    z-index: 5;
}

.wave {
    position: absolute;
    left: 0;
    width: 200%;
    height: 100%;
    background-repeat: repeat no-repeat;
    background-position: 0 bottom;
    transform-origin: center bottom;
}

.waveTop {
    background-size: 50% 100px;
}

.waveAnimation .waveTop {
    animation: move-wave 3s;
    -webkit-animation: move-wave 3s;
    -webkit-animation-delay: 1s;
    animation-delay: 1s;
}

.waveMiddle {
    background-size: 50% 120px;
}

.waveAnimation .waveMiddle {
    animation: move_wave 10s linear infinite;
}

.waveBottom {
    background-size: 50% 100px;
}

.waveAnimation .waveBottom {
    animation: move_wave 15s linear infinite;
}

.form-group small.text-danger {
    display: block;
    margin-top: 0.25rem;
    margin-left: 2.5rem;
    /* 這裡建議和 input-wrapper 左邊距一致 */
    font-size: 0.95em;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 310px;
    padding-right: 2.5em;
    /* 預留空間給 icon，視 icon 寬度調整 */
    box-sizing: border-box;
}

.inputUserIcon,
.inputPassIcon {
    position: absolute;
    /* 距離右側的距離，可依需求微調 */
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    pointer-events: none;
    /* 讓 icon 不會擋到點擊 */
    font-size: 1.2em;
}