@import url('https://fonts.googleapis.com/css?family=Montserrat:400,800');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 100vh;
    background: url(../images/rain.jpg);
    font-family: 'Montserrat', sans-serif;
}

.main-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 480px;
    width: 768px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.2);
}

.main-container .form-container {
    width: 100%;
    height: 100%;
    position: absolute;
}

.form-container .sign-in {
    width: 50%;
    position: absolute;
    left: 0;
    top: 0;
    z-index: 1;
    height: 100%;
    border-radius: 10px;
}

.form-container .sign-up {
    width: 50%;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    z-index: -1;
    transition: all 0.8s ease;
    border-radius: 10px;
}

form {
    background-color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 0 50px;
    height: 100%;
    text-align: center;
    border-radius: 10px;
}

.form-container h1 {
    padding: 10px 0;
}

.form-container a {
    text-decoration: none;
    margin: 10px 0;
}

.form-container a:hover {
    color: #4070F4;
}

.social-container {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-direction: row;
    width: 50%;
}

.social-container a {
    border: 1px solid #DDDDDD;
    border-radius: 50%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    margin: 0 5px;
    height: 40px;
    width: 40px;
    color: #000;
}

.social-container a i {
    margin: 20px 0;
    padding: 15px 15px;
}

span {
    font-size: 15px;
    font-weight: 500;
}

input {
    background-color: #eee;
    border: none;
    padding: 12px 15px;
    margin: 8px 0;
    width: 100%;
    outline: none;
    border-radius: 2px;
}

button {
    border-radius: 2px;
    border: 1px solid #f3d25d;
    background-color: #f3d25d;
    color: #FFFFFF;
    font-size: 12px;
    font-weight: bold;
    padding: 12px 45px;
    margin-top: 4px;
    width: 100%;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: transform 80ms ease-in;
    cursor: pointer;
}

button:active {
    transform: scale(0.95);
}

button:focus {
    outline: #fff;
}

.main-container .slide-container {
    background: #4070F4;
    color: black;
    position: absolute;
    right: 0;
    top: 0;
    z-index: 10;
    width: 50%;
    height: 100%;
    font-size: 15px;
    text-align: center;
    border-radius: 0 5px 5px 0;
    transition: all 0.8s ease;
    overflow: hidden;
}

.slide-container .slide-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: row;
    height: 480px;
    width: 768px;
    background: #f3d25d;
    position: absolute;
    left: 0;
    top: 0;
    transition: all 0.8s ease;
    border-radius: 5px;
}

.slide-panel .slide-left {
    left: 0;
    top: 0;
    display: flex;
    width: 384px;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    padding: 0 40px;
    text-align: center;
    border-radius: 5px;
}

.slide-panel .slide-right {
    right: 0;
    top: 0;
    display: flex;
    width: 384px;
    height: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    position: absolute;
    padding: 0 40px;
    text-align: center;
}

.slide {
    width: 100%;
    border: 2px solid black;
    padding: 12px 45px;
    border-radius: 2px;
    cursor: pointer;
    margin-top: 10px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    transition: transform 80ms ease;
}

.slide:hover {
    background-color: black;
    color: #f3d25d;
}

.slide:active {
    transform: scale(0.97);
}

#click:checked ~ .main-container .slide-container {
    transform: translateX(-100%);
    border-radius: 5px 0 0 5px;
}

#click:checked ~ .main-container .form-container .sign-up {
    transform: translateX(100%);
    z-index: 1;
}

#click:checked ~ .main-container .slide-container .slide-panel {
    transform: translateX(-50%);
}

#click {
    display: none;
}

.botaocad {
    border-radius: 3px;
    height: 20px;
    color: black;
    text-decoration: none;
    margin-top: 60px;
    font-weight: bold;
}


/* Estilo para alertas */
.alert {
    width: 100%;
    padding: 12px 15px;
    margin: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    display: none; /* escondido até ser ativado no JS */
}

/* Sucesso */
.alert.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Erro */
.alert.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
