/* --- RESET E ESTILOS GLOBAIS --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #ffffff;
    height: 100vh;
    overflow: hidden; /* desktop: avoid double scroll */
}

/* --- CONTAINER PRINCIPAL --- */
.login-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: 100vh;
    width: 100%;
}

/* --- LADO ESQUERDO - FORMULÁRIO --- */
.login-left {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px;
    position: relative;
}

.logo {
    position: absolute;
    top: 30px;
    left: 30px;
}

.logo img {
    height: 8vh;
    /* margin-top: -5vh;
    margin-left: -5vh; */
}

.login-content {
    max-width: 400px;
    width: 100%;
}

/* Card wrapper (used on small screens to lift the form with a subtle shadow) */
.login-card {
    display: block;
}

.login-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #4a4a4a;
    margin-bottom: 10px;
    text-align: center;
}

.login-content p {
    color: #666;
    text-align: center;
    margin-bottom: 40px;
    font-size: 1rem;
}

/* --- FORMULÁRIO --- */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: #4a4a4a;
    font-weight: 500;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input[type="text"],
.form-group input[type="password"] {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e8e8e8;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.form-group input[type="text"]:focus,
.form-group input[type="password"]:focus {
    outline: none;
    border-color: #bba35b;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(187, 163, 91, 0.1);
}

/* --- CAMPO DE SENHA COM TOGGLE --- */
.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    font-size: 1.1rem;
    padding: 5px;
}

.toggle-password:hover {
    color: #bba35b;
}

/* --- OPÇÕES DO FORMULÁRIO --- */
.form-options {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.remember-me input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e8e8e8;
    border-radius: 4px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input[type="checkbox"]:checked + .checkmark {
    background-color: #bba35b;
    border-color: #bba35b;
}

.remember-me input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}



/* --- GRUPO DE BOTÕES --- */
.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
}

/* --- BOTÃO DE LOGIN --- */
.login-btn {
    width: 100%;
    background-color: #bba35b;
    color: white;
    padding: 15px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login-btn:hover {
    background-color: #a08c4a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 163, 91, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

/* --- BOTÃO ESQUECI A SENHA --- */
.forgot-btn {
    width: 100%;
    background-color: transparent;
    color: #bba35b;
    padding: 15px 20px;
    border: 2px solid #bba35b;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.forgot-btn:hover {
    background-color: #bba35b;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(187, 163, 91, 0.3);
}

.forgot-btn:active {
    transform: translateY(0);
}

/* --- LADO DIREITO - DECORAÇÃO --- */
.login-right {
    background-color: #ffb901;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.background-decoration {
    position: relative;
    width: 100%;
    height: 100%;
}

.background-text {
    font-family: 'Poppins', sans-serif;
    font-size: 12rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.3);
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    line-height: 1;
    z-index: 1;
    user-select: none;
}

.fruits-decoration {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: cover;
    z-index: 2;
    opacity: 0.9;
}

/* --- RODAPÉ --- */
.site-footer {
    position: relative;
}

.footer-main {
    background-color: #ffb901;
    padding: 50px 0;
    color: #4a4a4a;
    background-image: url('https://www.transparenttextures.com/patterns/simple-dashed.png'); /* Textura sutil */
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr 1.5fr;
    align-items: center;
    gap: 30px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 20px;
}

.social-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    background-color: #4a4a4a;
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.1rem;
    transition: background-color 0.3s ease;
}

.social-icon:hover {
    background-color: #333;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 30px;
    border-left: 1px solid rgba(74, 74, 74, 0.2);
}

.footer-col:first-child {
    border-left: none; /* Remove a borda da primeira coluna */
    align-items: center;
}

.contact-info {
    display: flex;
    flex-direction: column;
}

.contact-info strong {
    font-weight: 700;
}

.footer-bottom {
    background-color: #4a4a4a;
    color: #f0f0f0;
    padding: 15px 0;
    font-size: 0.9rem;
}

.bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.back-to-top {
    position: absolute;
    bottom: 25px;
    right: 30px;
    width: 45px;
    height: 45px;
    background-color: #fff;
    color: #4a4a4a;
    border-radius: 8px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.back-to-top:hover {
    transform: translateY(-5px);
}

/* --- RESPONSIVIDADE --- */
@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        grid-template-rows: 60vh 40vh;
    }

    /* On small screens allow page scrolling and hide the decorative (right) column entirely.
       The decorative image will not be loaded on small devices (handled by JS). */
    body {
        overflow: auto;
        height: auto;
    }

    .login-right {
        display: none;
    }

    .login-left {
        padding: 20px;
        justify-content: flex-start;
        padding-top: 100px;
    }

    /* mobile: give the form a card appearance with a gentle shadow */
    .login-card {
        background: #ffffff;
        padding: 18px 18px 28px 18px;
        border-radius: 14px;
        box-shadow: 0 8px 20px rgba(0,0,0,0.08);
        margin: 12px auto;
        width: calc(100% - 40px);
        max-width: 460px;
    }

    .logo {
        top: 20px;
        left: 20px;
    }

    .logo img {
        height: 60px;
    }

    .login-content h1 {
        font-size: 2rem;
    }

    .login-right {
        grid-row: 1;
    }

    .background-text {
        font-size: 6rem;
        left: 10px;
    }

    .fruits-decoration {
        width: 100%;
        left: -10%;
    }

    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-content {
        max-width: 100%;
    }

    .login-content h1 {
        font-size: 1.8rem;
    }

    .form-group input[type="text"],
    .form-group input[type="password"] {
        padding: 12px 15px;
    }

    .login-btn {
        padding: 12px 20px;
        font-size: 1rem;
    }
}
/* --- RESPONSIVIDADE FINAL --- */
@media (max-width: 900px) {
    .socio-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .socio-content p {
        margin: 0 auto 30px auto;
    }
    .socio-seal {
        margin: 0 auto -40px auto;
    }
    .socio-values {
        margin-top: 40px;
    }
    .value-item {
        justify-content: center;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .footer-col {
        border-left: none;
        align-items: center;
    }
}