main {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f6f6f6;
	height: 100vh;
	box-sizing: border-box;
}

.signup.container {
	display: flex;
	flex-direction: column;
	box-sizing: border-box;
	width: 515px;
	margin: 82px;
	padding: 42px 74px;
	background-color: rgba(255,255,255,0.6);
}

.signup h1 {
	margin-bottom: 28px;
	font-size: 180%;
	font-weight: 400;
	opacity: 0.65;
}

/* ============
    Textfields
   ============ */

.signup input::-ms-clear {
	display: none;
}

@keyframes shake {
	0% {
		left: -10px;
	}

	16% {
		left: 9px;
	}

	33% {
		left: -6px;
	}

	50% {
		left: 5px;
	}

	66% {
		left: -2px;
	}

	83% {
		left: 1px;
	}

	100% {
		left: 0px;
	}
}

.textfield {
	display: block;
	position: relative;
	margin: 12px 0;
	box-shadow: 1px 1px rgba(0, 0, 0, 0.05) inset;
	border: 1px solid rgba(0, 0, 0, 0.2);
	background: #fff;
}

.textfield span {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	box-sizing: border-box;
	padding: 18px;
	color: rgba(0, 0, 0, 0.3);
	font-size: 110%;
	font-weight: 400;
	cursor: text;
	transition: all 0.2s ease-in-out;
	pointer-events: none;
	line-height: 1.3;
}

.textfield .field {
	display: block;
	position: relative;
	width: 100%;
	border: none;
	padding: 27px 14px 9px 14px;
	background: transparent;
	background: none;
	outline: none;
	box-sizing: border-box;
	border-radius: 0;
	font-size: 110%;
	font-weight: 400;
	opacity: 1;
}

.textfield .field.is-empty:not(.is-focused) {
	opacity: 0;
}

.textfield .field::-webkit-input-placeholder {
	color: rgba(0, 0, 0, 0.3);
}

.textfield .field::-moz-placeholder {
	color: rgba(0, 0, 0, 0.3);
}

.textfield .field:-ms-input-placeholder {
	color: rgba(0, 0, 0, 0.3);
}

.textfield .field::placeholder {
	color: rgba(0, 0, 0, 0.3);
}

.textfield .field.is-focused+span,
.textfield .field:not(.is-empty)+span {
	padding: 8px 0 8px 14px;
	font-size: 70%;
	font-weight: 700;
	cursor: default;
	color: rgba(0, 0, 0, 0.5);
}

.textfield.is-invalid {
	border: 1px solid rgba(255, 43, 43, 0.8);
	background: rgba(255, 43, 43, 0.03);
}

.textfield.is-invalid .field.is-focused+span,
.textfield.is-invalid .field:not(.is-empty)+span {
	animation: shake 0.5s linear;
	color: rgba(255, 43, 43, 0.8);
}

.textfield.has-icon input {
	padding-right: 56px;
}

.textfield .icon {
	position: absolute;
	right: 0;
	bottom: 0;
	z-index: 20;
	width: 60px;
	height: 100%;
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	background-size: 32px;
	background-position: center;
	background-repeat: no-repeat;
	transition: all 0.2s ease-out;
}

.textfield .icon.unhide {
	background-image: url(https://cfm.yidio.com/mobile/img/ico-eye-black-96.png);
}

input[type=password]~.unhide {
	opacity: 0.15;
}

input[type=text]~.unhide {
	opacity: 0.7;
}

form .hint {
	position: relative;
	padding-left: 15px;
	padding-bottom: 16px;
	font-weight: 500;
	font-size: 90%;
	animation: shake 0.5s linear;
	color: rgba(0,0,0, 0.8);
}

form .hint a {
	font-weight: 400;
	color: #0084ff;
}

/* =========
    Buttons
   ========= */

.buttons {
	margin: 28px 0 12px 0;
}

.button {
	display: block;
	position: relative;
	width: 100%;
	box-sizing: border-box;
	text-transform: uppercase;
	color: white;
	border: none;
	border-radius: 100px;
	font-size: 120%;
	font-weight: 700;
	text-align: center;
	text-shadow: 0 1px rgba(0, 0, 0, 0.15);
	-webkit-tap-highlight-color: rgba(255, 255, 255, 0);
	background: none;
	padding: 0;
	margin-bottom: 4px;
	outline: none;
	box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
	transition: box-shadow 0.2s ease-out;
}

.button .face {
	display: block;
	position: relative;
	padding: 24px 24px 20px 24px;
	margin: 0;
	box-sizing: border-box;
	border-radius: inherit;
	width: inherit;
	top: 0;
	left: 0;
	background: linear-gradient(to bottom, #6da43c 0%, #639a36 100%);
	z-index: 10;
	box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.5);
	transition: top 0.05s linear;
}

.button .face::after {
	content: '';
	display: inline-block;
	position: relative;
	transform: rotate(45deg);
	height: 8px;
	width: 8px;
	top: -2px;
	left: 5px;
	border-top: 3px solid white;
	border-right: 3px solid white;
}

.ios .button .face {
	padding: 21px 24px 19px 24px;
}

.button.show-arrow .face span {
	padding-right: 5px;
}

.button.show-arrow .face::after {
	content: '';
	display: inline-block;
	position: relative;
	transform: rotate(45deg);
	height: 8px;
	width: 8px;
	top: -2px;
	border-top: 4px solid white;
	border-right: 4px solid white;
}

.button::after {
	content: '';
	display: block;
	position: absolute;
	border-radius: inherit;
	width: inherit;
	height: 100%;
	top: 4px;
	left: 0;
	background: #598731;
	box-shadow: 0 10px 60px rgba(0, 0, 0, 0.15);
}

.button:active .face {
	top: 2px;
}

/* =======
    Terms
   ======= */

.agreement {
	margin: 28px 0;
	font-size: 90%;
	color: rgba(0, 0, 0, 0.5);
	font-weight: 400;
	margin-bottom: 24px;
	line-height: 1.5em;
}

.agreement a {
	color: #0084ff;
	white-space: nowrap;
}