/*
 ____                 _     
| __ ) _ __ _____   _(_)___ 
|  _ \| '__/ _ \ \ / / / __|
| |_) | | |  __/\ V /| \__ \
|____/|_|  \___| \_/ |_|___/
                
CSS File - These are the styles for various site pop-up (eg. log-in, sign-up).
*/

/* Main central wrapper and overlay */
.dialog,
.dialog__overlay {
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
    z-index: 9999;
}

.dialog {
	position: fixed;
	display: -webkit-flex;
	display: flex;
	-webkit-align-items: center;
	align-items: center;
	-webkit-justify-content: center;
	justify-content: center;
	pointer-events: none;
}

.dialog__overlay {
	position: absolute;
	z-index: 1;
	background: rgba(59, 63, 69, 0.94);
	opacity: 0;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
	-webkit-backface-visibility: hidden;
}

.dialog--open .dialog__overlay {
	opacity: 1;
	pointer-events: auto;
}

/* Content of the pop-up */
.dialog__content {
	width: 50%;
	max-width: 400px;
	min-width: 290px;
	background: #fff;
	padding: 3.2em;
	text-align: center;
	position: relative;
	z-index: 5;
	opacity: 0;
}
@media (max-width: 640px) {
    .dialog__content {
        width: 90%;
        padding: 2.7em;
    }
}
.dialog--open .dialog__content {
	pointer-events: auto;
}

.dialog--close--button {
    position: absolute;
    top: 15px;
    right: 18px;
    background: url("../images/close-icon.png") center no-repeat;
    background-size: 12px;
    width: 20px;
    height: 20px;
    -webkit-transition: all 200ms ease-in;
    -moz-transition: all 200ms ease-in;
    -ms-transition: all 200ms ease-in;
    -o-transition: all 200ms ease-in;
    transition: all 200ms ease-in;
}
.dialog--close--button:hover {
    opacity: 0.6;
    cursor: pointer;
}

/* Constituent elements */
.dialog h2 {
	margin: 0;
	font-weight: 400;
	font-size: 1.7em;
	padding: 1em 0;
    color: #bbb;
}
@media (max-width: 640px) {
    .dialog h2 {
        font-size: 1.5em;
        padding: 0.85em 0;
    }
}
.dialog button, .preview__header button {
    background: url("../images/login-arrow.png") 90% 16px no-repeat #00A8E8;
    background-size: 13px;
    margin: 20px auto 20px;
    font-weight: 500;
    letter-spacing: 1px;
    font-size: 1.3em;
    color: #fff;
    border-radius: 45px;
    width: 80%;
    padding: 0.8em 0.8em 0.9em 0.8em;
    text-align: center;
    border: 0;
    -webkit-transition: all 200ms ease-in;
    -moz-transition: all 200ms ease-in;
    -ms-transition: all 200ms ease-in;
    -o-transition: all 200ms ease-in;
    transition: all 200ms ease-in;
}
.dialog button:hover, .preview__header button:hover {
    background: url("../images/login-arrow.png") 92% 16px no-repeat #0097d0;
    background-size: 13px;
    cursor: pointer;
    -webkit-box-shadow: 0px 0px 10px 0px rgba(153,153,153,0.3);
    -moz-box-shadow: 0px 0px 10px 0px rgba(153,153,153,0.3);
    box-shadow: 0px 0px 10px 0px rgba(153,153,153,0.3);
}
.dialog textarea {
    position: static;
    display: block;
    margin: 5px auto;
    padding: 1.1em 0.45em 1.17em 3.7em;
    width: 100%;
    border: 0 solid #eee;
    border-radius: 0;
    background-color: #fff;
    color: #ccc;
    font-weight: 500;
    text-overflow: ellipsis;
    font-size: 1.3em;
    text-align: left;
}
.dialog textarea:focus {
    color: #888;
}
.dialog input {
    display: block;
    margin: 5px auto;
    padding: 1.1em 0.45em 1.17em 3.7em;
    width: 100%;
    border: 0 solid #eee;
    border-radius: 0;
    background-color: #fff;
    color: #888;
    font-weight: 500;
    text-overflow: ellipsis;
    font-size: 1.3em;
    text-align: left;
}
@media (max-width: 640px) {
    .dialog button, .preview__header button {
        font-size: 1.1em;
    }
    .dialog input, .dialog textarea {
        font-size: 1.1em;
    }
}
.dialog input:first-child {
    border-bottom: 1px solid rgba(221, 221, 221, 0.7);
}
.dialog input:first-child:focus {
    border-bottom: 1px solid rgba(221, 221, 221, 0.7);
}
.dialog input:focus, .dialog textarea:focus {
    outline: none;
    border: 0 solid #fff;
    margin: 5px auto;
    padding: 1.1em 0.45em 1.17em 3.7em;
}
.dialog input::-webkit-input-placeholder { color: #ccc; }
.dialog input::-moz-input-placeholder { color: #ccc; }
.dialog input::-ms-input-placeholder { color: #ccc; }
.user-l-icon {
    background: url("../images/login-user.png") 15px 15px no-repeat;
    background-size: 20px;
}
.pass-l-icon {
    background: url("../images/login-key.png") 15px 15px no-repeat;
    background-size: 22px;
    width: 100%!important;
}
.pass-l-icon-2 {
    background: url("../images/login-key.png") 15px 15px no-repeat;
    background-size: 22px;
    width: calc(100% - 6.4em)!important;
}
.months-l-icon {
    background: url("../images/months-date.png") 15px 15px no-repeat;
    background-size: 20px;
}
.message-l-icon {
    background: url("../images/contact-message.png") 12px 14px no-repeat;
    background-size: 24px;
}
.dialog .logo_login {
    background: url("../images/square_logo.png") center no-repeat;
    background-size: 80px;
    width: 85px;
    height: 85px;
    margin: 0 auto;
}