.so-social-user-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba($sosocial-earth, .9);
	z-index: 900;
	overflow-y: auto;
	cursor: pointer;

	visibility: hidden;
	opacity: 0;
	@include transition(opacity .3s 0, visibility 0 .3s);

	&.is-visible {
		visibility: visible;
		opacity: 1;

		@include transition(opacity .3s 0, visibility 0 0);

		.so-social-user-modal-container {
			@include transform(translateY(0));
		}
	}
    .login-smiley {
      margin: 2em auto -1em auto;
      color: $white;
      position: relative;
      background: $sosocial-orange;
      border-radius: 100%;
      width: 7em;
      display: block;
      height: 7em;
      text-align: center;
      i {
        position: absolute;
        @include center;
        font-size: 4em;
        padding-top: 0.4em;
      }
    }
}

.so-social-user-modal-container {
	position: relative;
	width: 90%;
	max-width: 600px;
	background: #FFF;
	margin: 3em auto 4em;
	cursor: auto;
	@include border-radius;
	@include transform(translateY(-30px));

	@include transition-property (transform);
	@include transition-duration(.3s);

	.so-social-switcher {
		@include clearfix;

		li {
			@include column(.5);
			text-align: center;

			&:first-child a {
				border-radius: .25em 0 0 0;
			}

			&:last-child a {
				border-radius: 0 .25em 0 0;
			}
		}

		a {
			display: block;
			width: 100%;
			height: 50px;
			line-height: 50px;
			background: $sosocial-warm-gray;
			color: $brand;

			&.selected {
				background: #FFF;
				color: $sosocial-earth;
			}
		}
	}

	@include MQ(S) {
		margin: 4em auto;

		.so-social-switcher a {
			height: 70px;
			line-height: 70px;
		}
	}
}

.so-social-form {
	padding: 1.4em;

	.fieldset {
		position: relative;
		margin: 1.4em 0;

		&:first-child {
			margin-top: 0;
		}

		&:last-child {
			margin-bottom: 0;
		}
	}

	label {
        font-size: 0.9em;
	}

	input {
		margin: 2em 0;
		padding: 0;
		@include border-radius;
		&.full-width {
			width: 100%;
		}

		&.has-padding {
			padding: 12px 20px 12px 20px;
            margin: 1em 0;
		}

		&.has-border {
			border: 1px solid $sosocial-warm-gray;
			@include appearance(none);

			&:focus {
				border-color: $sosocial-earth;
				box-shadow: 0 0 5px rgba($sosocial-earth, .1);
				outline: none;
			}
		}

		&.has-error {
			border: 2px solid $sosocial-red;
		}

		&[type=password] { 
			/* space left for the HIDE button */
			padding-right: 15px; 
		}

		&[type=submit] {
			padding: 16px 0;
			cursor: pointer;
			background: $sosocial-orange;
			color: #FFF;
			font-weight: bold;
			border: none;
			@include appearance(none);

			.no-touch &:hover, .no-touch &:focus {
				background: lighten($sosocial-orange, 5%);
				outline: none;
			}
		}
	}

	.hide-password {
		display: inline-block;
		position: absolute;
		right: 0;
		top: 0;
		padding: 6px 15px;
		border-left: 1px solid $sosocial-warm-gray;
		@include center(y); // see partials > _mixins.scss
		color: $sosocial-earth;
	}

	.so-social-error-message {
		display: inline-block;
		position: absolute;
		left: -5px;
		bottom: -35px;
		background: rgba($sosocial-red, .9);
		padding: .8em;
		z-index: 2;
		color: #FFF;
		@include border-radius;

		/* prevent click and touch events */
		pointer-events: none;

		visibility: hidden;
		opacity: 0;

		@include transition(opacity .2s 0, visibility 0 .2s);

		&::after {
			/* triangle */
			content: '';
			position: absolute;
			left: 22px;
			bottom: 100%;
			@include triangle(16px, rgba($sosocial-red, .9), up);
		}

		&.is-visible {
			opacity: 1;
			visibility: visible;

			@include transition(opacity .2s 0, visibility 0 0);
		}
	}

	@include MQ(S) {
		padding: 2em;

		.fieldset {
			margin: 2em 0;

			&:first-child {
				margin-top: 0;
			}

			&:last-child {
				margin-bottom: 0;
			}
		}

		input.has-padding {
			padding: 16px 20px 16px 20px;
		}

		input[type=submit] {
			padding: 16px 0;
		}
	}
}

.so-social-form-message {
	padding: 1.4em 1.4em 0;
	line-height: 1.4;
	text-align: center;
	@include MQ(S) {
		padding: 2em 2em 0;
	}
}

.so-social-form-bottom-message {
	position: absolute;
	width: 100%;
	left: 0;
	text-align: center;
	a {   
		color: #FFF;
		text-decoration: underline;
	}
}

.so-social-close-form {
	display: block;
	position: absolute;
	width: 40px;
	height: 40px;
	right: 0;
	top: -40px;
	text-indent: 100%;
	white-space: nowrap;
	overflow: hidden;

	@include MQ(L) {
		display: none;
	}
}

#so-social-login, #so-social-signup, #so-social-reset-password {
	display: none;
}

#so-social-login.is-selected, #so-social-signup.is-selected, #so-social-reset-password.is-selected {
	display: block;
}
