@import "https://fonts.googleapis.com/css?family=Dosis|Roboto:300,400";

/* Сброс стилей */
* {
    margin: 0;
    padding: 0;
}

body {
    background: #f5f5f5; /* Светлый фон для всего сайта */
    font-family: "Roboto", sans-serif;
    color: #333; /* Темно-серый текст */
}

.container {
    position: absolute;
    width: auto;
    height: auto;
    top: calc(50% - 240px);
    left: calc(50% - 160px);
}

form {
    position: absolute;
    text-align: center;
    background: #fff; /* Белый фон формы */
    width: 310px;
    height: 470px;
    border-radius: 5px;
    padding: 30px 20px 0 20px;
    box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.1); /* Легкая тень для контраста */
    box-sizing: border-box;
}

p {
    font-family: "Roboto", sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    font-size: 12px;
    color: #888; /* Светло-серый для текста */
    margin-bottom: 40px;
}

p > span {
    padding-top: 3px;
    display: block;
    font-weight: 400;
    font-size: 9px;
}

h3 {
    font-family: "Dosis", sans-serif;
    font-size: 35px;
    text-transform: uppercase;
    color: #444; /* Темно-серый цвет для заголовка */
    margin-bottom: 30px;
}

input,
button {
    outline: none !important;
}

/* Кнопки */
button.fb {
    border: none;
    background: #3b5998;
    width: 160px;
    height: 25px;
    font-family: "Roboto", sans-serif;
    font-size: 12px;
    color: #fff;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid #29487d;
    cursor: pointer;
    margin-bottom: 20px;
    transition: all 0.3s linear;
}

button.fb:hover {
    background: #fff;
    color: #3b5998;
}

/* Кнопки формы */
button.form-btn {
    position: absolute;
    width: 50%;
    height: 60px;
    bottom: 0;
    border: 0;
    font-family: "Dosis", sans-serif;
    font-size: 24px;
    text-transform: uppercase;
    cursor: pointer;
}

button.form-btn.sx {
    left: 0;
    border-radius: 0 0 0 5px;
    background-color: #8e8e8e; /* Серый фон */
    color: #fff;
    transition: all 0.3s linear;
}

button.form-btn.sx:hover {
    background-color: #777; /* Темнее при наведении */
}

button.form-btn.sx.back {
    background-color: #ccc; /* Легкий серый для кнопки назад */
    transition: all 0.3s linear;
}

button.form-btn.sx.back:hover {
    background-color: #bbb; /* Темнее при наведении */
}

button.form-btn.dx {
    right: 0;
    border-radius: 0 0 5px 0;
    background-color: #8e8e8e; /* Серый фон */
    color: #fff;
}

input {
    border: none;
    border-bottom: 1px solid #ccc; /* Светло-серая линия для ввода */
    width: 85%;
    font-family: "Roboto";
    color: #333; /* Темный текст */
    text-align: center;
    font-size: 21px;
    font-weight: 300;
    margin-bottom: 25px;
}

::-webkit-input-placeholder {
    color: #888; /* Светло-серый текст для плейсхолдера */
    font-family: "Roboto";
    font-weight: 300;
}

:-moz-placeholder {
    color: #888;
    font-family: "Roboto";
    font-weight: 300;
}

::-moz-placeholder {
    color: #888;
    font-family: "Roboto";
    font-weight: 300;
}

:-ms-input-placeholder {
    color: #888;
    font-family: "Roboto";
    font-weight: 300;
}

.signIn input,
.signUp .w100 {
    width: 100%;
}

.signIn {
    z-index: 1;
    transform: perspective(100px) translate3d(100px, 0px, -30px);
    opacity: 0.5;
}

.signUp {
    z-index: 2;
}

/* Анимации для активных и неактивных состояний */
.active-dx {
    animation-name: foregrounding-dx;
    animation-duration: 0.9s;
    animation-fill-mode: forwards;
}

.active-sx {
    animation-name: foregrounding-sx;
    animation-duration: 0.9s;
    animation-fill-mode: forwards;
}

.inactive-dx {
    animation-name: overshadowing-dx;
    animation-duration: 0.9s;
    animation-fill-mode: forwards;
}

.inactive-sx {
    animation-name: overshadowing-sx;
    animation-duration: 0.9s;
    animation-fill-mode: forwards;
}

@keyframes overshadowing-dx {
    0% {
        z-index: 2;
        transform: perspective(100px) translate3d(0px, 0px, 0px);
        opacity: 1;
        box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.1); /* Легкая тень */
    }
    100% {
        z-index: 1;
        transform: perspective(100px) translate3d(100px, 0px, -30px);
        opacity: 0.5;
        box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
    }
}

@keyframes overshadowing-sx {
    0% {
        z-index: 2;
        transform: perspective(100px) translate3d(0px, 0px, 0px);
        opacity: 1;
        box-shadow: 0 10px 50px 0 rgba(0, 0, 0, 0.1);
    }
    100% {
        z-index: 1;
        transform: perspective(100px) translate3d(-100px, 0px, -30px);
        opacity: 0.5;
        box-shadow: 0 10px 20px 0 rgba(0, 0, 0, 0.1);
    }
}

@keyframes foregrounding-dx {
    0% {
        z-index: 1;
        transform: perspective(100px) translate3d(100px, 0px, -30px);
        opacity: 0.5;
    }
    50% {
        z-index: 2;
        transform: perspective(100px) translate3d(400px, 0px, -30px);
    }
    100% {
        z-index: 2;
        transform: perspective(100px) translate3d(0px, 0px, 0px);
        opacity: 1;
    }
}

@keyframes foregrounding-sx {
    0% {
        z-index: 1;
        transform: perspective(100px) translate3d(-100px, 0px, -30px);
        opacity: 0.5;
    }
    50% {
        z-index: 2;
        transform: perspective(100px) translate3d(-400px, 0px, -30px);
    }
    100% {
        z-index: 2;
        transform: perspective(100px) translate3d(0px, 0px, 0px);
        opacity: 1;
    }
}

.modal {
	display: none;
	position: fixed;
	z-index: 1;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
	background-color: white;
	margin: 15% auto;
	padding: 20px;
	border-radius: 5px;
	width: 80%;
	max-width: 400px;
}

.modal button {
	background-color: #ff7d00;
	color: white;
	border: none;
	padding: 10px 20px;
	cursor: pointer;
	border-radius: 5px;
	margin-top: 10px;
}

.modal button:hover {
	background-color: #e66c00;
}