/* Importa fontes modernas */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&family=Open+Sans&display=swap');

/* Estilo geral da página */
body {
    background-color: #F1F8E9;
    font-family: 'Open Sans', Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    box-sizing: border-box;
}
/* Cabeçalho */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(145deg, #2E7D32, #4CAF50); /* Gradiente verde */
    color: white;
    padding: 10px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

header h1 {
    margin: 0;
    font-size: clamp(24px, 5vw, 28px); /* Responsivo */
}


/* Título principal */
.brand-title {
    text-align: center;
    font-size: 22px;
    font-weight: 700;
    color: #2E7D32;
    margin: 10px 0 20px 0;
    letter-spacing: 1px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
}
.logo-img {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.brand-title::after {
    content: "";
    display: block;
    width: 50px;
    height: 3px;
    background: #4CAF50;
    margin: 8px auto 0 auto;
    border-radius: 2px;
}

/* Containers */
.main-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: stretch;
    max-width: 1000px;
    margin: 20px auto;
    gap: 20px;
    box-sizing: border-box;
}

.login-container,
.info-container {
    flex: 1 1 45%;
    padding: 30px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
    margin: 10px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    animation: fadeSlideIn 0.8s ease forwards;
    opacity: 0;
    transform: translateY(20px);
}

/* Inputs e select com design pill */
input[type="email"],
input[type="password"],
input[type="text"],
select {
    width: 100%;
    padding: 12px 20px;
    margin: 12px 0;
    border-radius: 25px;
    border: 1px solid #A5D6A7;
    box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.05);
    font-size: 16px;
    background: #F1F8E9;
    box-sizing: border-box;
    transition: box-shadow 0.3s ease;
}

input:focus,
select:focus {
    outline: none;
    border: 1px solid #4CAF50;
    box-shadow: 0 0 12px rgba(76, 175, 80, 0.4);
}

/* Botão estilizado */
button {
    background-color: #2E7D32;
    color: white;
    border: none;
    padding: 14px 0;
    font-size: 18px;
    font-weight: 600;
    border-radius: 25px;
    cursor: pointer;
    margin-top: 20px;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    width: 100%;
}

button:hover {
    background-color: #4CAF50;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}

button:focus {
    outline: none;
}

/* Links com underline animada */
a {
    display: block;
    margin-top: 20px;
    color: #2E7D32;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    transition: color 0.3s;
}

a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 2px;
    background: #4CAF50;
    transition: width 0.3s;
}

a:hover {
    color: #4CAF50;
}

a:hover::after {
    width: 100%;
}

/* Texto dentro do container info */
.info-container img {
    width: 100px;
    height: auto;
    margin-bottom: 20px;
    border-radius: 10px;
}

.info-text {
    width: 100%;
    margin-top: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.info-container h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: #2E7D32;
    margin-bottom: 10px;
}

.info-container p,
.info-container ul {
    color: #555;
    text-align: justify;
    margin-bottom: 15px;
    line-height: 1.6;
    font-size: 15px;
}

.info-container ul {
    list-style: disc;
    padding-left: 20px;
}

/* Flash messages */
.flashes {
    list-style: none;
    padding: 0;
    margin: 10px 0;
}

.flashes .success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    font-weight: bold;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0;
}

.flashes .info {
    color: #2E7D32;
    font-weight: bold;
}

.flashes .danger {
    color: red;
    font-weight: bold;
}

.flashes .warning {
    color: orange;
    font-weight: bold;
}

/* Responsividade */
@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
        gap: 10px;
    }

    .login-container,
    .info-container {
        flex: 1 1 100%;
    }

    h1 {
        font-size: 22px;
    }

    h2 {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .main-container {
        padding: 10px;
    }

    .login-container,
    .info-container {
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 14px;
    }

    input[type="email"],
    input[type="password"],
    input[type="text"],
    select {
        font-size: 14px;
        padding: 10px 15px;
    }

    button {
        padding: 12px;
        font-size: 16px;
    }

    a {
        font-size: 14px;
        margin-top: 10px;
    }
}

/* Animação fade + slide */
@keyframes fadeSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
