@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");

*,
*:before,
*:after {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    font-family: "Raleway", sans-serif;
}

.container {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.container:hover .top:before,
.container:hover .top:after,
.container:hover .bottom:before,
.container:hover .bottom:after,
.container:active .top:before,
.container:active .top:after,
.container:active .bottom:before,
.container:active .bottom:after {
    margin-left: 200px;
    transform-origin: -200px 50%;
    transition-delay: 0s;
}

.container:hover .center,
.container:active .center {
    opacity: 1;
    transition-delay: 0.2s;
}

.top:before,
.top:after,
.bottom:before,
.bottom:after {
    content: "";
    display: block;
    position: absolute;
    width: 200vmax;
    height: 200vmax;
    top: 50%;
    left: 50%;
    margin-top: -100vmax;
    transform-origin: 0 50%;
    transition: all 0.5s cubic-bezier(0.445, 0.05, 0, 1);
    z-index: 10;
    opacity: 0.65;
    transition-delay: 0.2s;
}

.top:before {
    transform: rotate(45deg);
    background: #e46569;
}

.top:after {
    transform: rotate(135deg);
    background: #f5a568;
}

.bottom:before {
    transform: rotate(-45deg);
    background: #4fe5d3;
}

.bottom:after {
    transform: rotate(-135deg);
    background: #3c50e6;
}

.center {
    position: absolute;
    width: 90%;
    max-width: 400px;
    height: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    padding: 2rem;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: #333;

    /* iPhone fixes */
    opacity: 1 !important;
    z-index: 999 !important;
}

.center input {
    width: 88%;
    padding: 0.7rem 1rem;
    margin: 5px 0;
    border-radius: 8px;
    border: 1px solid #ccc;
    font-family: inherit;
}

.mt-1 {
    margin-top: 10px;
}

.text-primary {
    color: #238746;
}
.text-red {
    color: #da2525;
}

.text-center {
    text-align: center;
}

.btn-submit {
    color: #333;
    font-size: 1rem;
    width: 88%;
    height: 35px;
    border: 1px solid black;
    border-radius: 25px;
    align-items: center;
    padding: 0 25px;
    margin: 15px 0;
    background-color: transparent;

    -webkit-transition: all 0.4s;
    -o-transition: all 0.4s;
    -moz-transition: all 0.4s;
    transition: all 0.4s;
}

.btn-submit:hover {
    color: #fafafa;
    background: #424242;
}
