.sales-crowd-user-modal {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba($salescrowd-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);
		.sales-crowd-user-modal-container {
			@include transform(translateY(0));
		}
	}
    .login-smiley {
      margin: 2em auto -1em auto;
      color: $white;
      position: relative;
      background: $salescrowd-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;
      }
    }
  .button {
    margin: 0;
  }
  .check-back {
	margin-top: 60px;
  }
}

.sales-crowd-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);
	.sales-crowd-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: $salescrowd-warm-gray;
			color: $brand;
			&.selected {
				background: #FFF;
				color: $salescrowd-earth;
			}
		}
	}
	@include MQ(S) {
		margin: 4em auto;
		.sales-crowd-switcher a {
			height: 70px;
			line-height: 70px;
		}
	}
}

.sales-crowd-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 $salescrowd-warm-gray;
			@include appearance(none);
			&:focus {
				border-color: $salescrowd-earth;
				box-shadow: 0 0 5px rgba($salescrowd-earth, .1);
				outline: none;
			}
		}
		&.has-error {
			border: 2px solid $salescrowd-red;
		}
		&[type=password] { 
			/* space left for the HIDE button */
			padding-right: 15px; 
		}
		&[type=submit] {
			padding: 16px 0;
			cursor: pointer;
			background: $business-hub-primary;
			color: #FFF;
			font-weight: bold;
			border: none;
			@include appearance(none);
			.no-touch &:hover, .no-touch &:focus {
				background: lighten($business-hub-primary, 5%);
				outline: none;
			}
		}
	}

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

	.sales-crowd-error-message {
		display: inline-block;
		position: absolute;
		left: -5px;
		bottom: -35px;
		background: rgba($salescrowd-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($salescrowd-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;
		}
	}
}

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

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

.sales-crowd-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;
	}
}

#sales-crowd-login, #sales-crowd-signup, #sales-crowd-reset-password {
	display: none;
}

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