@import url('https://fonts.googleapis.com/css2?family=Exo+2:wght@400;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Exo 2', sans-serif;
}

body {
    background-color: #f4f4f4;
    min-height: 100vh;
    display: flex;
}

.container {
    display: flex;
    width: 100%;
    /*max-width: 1200px;*/
    /*min-height: 700px;*/
    background: #fff;
    /*border-radius: 15px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);*/
    overflow: hidden;
}

/* Sidebar - Visível apenas em desktop */
.sidebar {
    display: none;
    position: relative;
    width: 650px;
    overflow: hidden;
    box-shadow: 8px 0 20px rgba(0, 0, 0, 0.199);
}

.sidebar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 1;
}

.sidebar-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    pointer-events: none;
}

.sidebar-logo {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 400px;
    z-index: 3;
}

/* Conteúdo principal */
.main-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    padding: 130px 20px 20px 20px;
    background-color: #fff;
}

.form-container {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    text-align: center;
    width: 100%;
    max-width: 650px;
    border-top: 4px solid #770405;
}

.form-container p {
    margin-bottom: 1rem;
    color: #000000;
    font-size: 2rem;
    margin-top: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 1.5rem;
    color: #787878;
    font-size: 1.2rem;
    width: 100%;
}

.form-group label {
    width: 100%;
    margin-bottom: 8px;
    text-align: left;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 0;
    margin-left: 10px;
    font-size: 1rem;
    box-sizing: border-box;
    border: none;
    border-bottom: 2px solid #E0E0E0;
    background: transparent;
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus {
    border-bottom-color: #770405;
}

/* Link de esqueci a senha */
.forgot-password {
    text-align: right;
    margin-top: 10px;
    margin-bottom: 1rem;
    width: 100%;
}

.forgot-password a {
    font-size: 1rem;
    color: #787878;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    line-height: 1;
}

.forgot-password a:hover {
    text-decoration: none;
    color: #770405;
}

.icon-senha {
    width: 16px;
    height: 16px;
    display: block;
    margin-top: 0;
}

.btn {
    width: 100%;
    max-width: 350px;
    height: 60px;
    font-size: 1.4rem;
    cursor: pointer;
    border-radius: 10px;
    border: none;
    transition: background-color 0.3s ease;
    margin-top: 30px;
}

.btn-enter {
    background-color: #770405;
    color: #ffffff;
}

.btn-enter:hover {
    background-color: #4d0304;
}

.flash-messages {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 400px;
    z-index: 10;
    text-align: center;
}

.flash-messages .alert {
    margin: 5px 0;
    padding: 10px 15px;
    border-radius: 8px;
}

/* Media Queries para responsividade */
@media (min-width: 992px) {
    .sidebar {
        display: block;
    }

    .form-group {
        flex-direction: row;
        align-items: baseline;
    }

    .form-group label {
        width: 75px;
        margin-right: 1px;
        margin-bottom: 0;
    }
}

@media (max-width: 768px) {
    .form-container {
        padding: 1.5rem;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    }

    .form-container p {
        font-size: 2rem;
    }

    .btn {
        height: 50px;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
        background-color: #fff;
    }

    .container {
        min-height: auto;
        border-radius: 10px;
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .main-content {
        padding: 30px 15px;
    }

    .form-container {
        padding: 1.2rem;
        box-shadow: none;
        border: 1px solid #e0e0e0;
    }

    .form-container p {
        font-size: 1.8rem;
        margin-top: 5px;
    }

    .form-group {
        margin-bottom: 1.2rem;
        font-size: 1rem;
    }

    .form-group input {
        padding: 0.7rem 0;
    }

    .btn {
        margin-top: 20px;
        height: 45px;
        font-size: 1.1rem;
    }

    .flash-messages {
        top: 10px;
        max-width: 90%;
    }
}

/* Animações suaves */
.form-container {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}