/* =========================
   LOGIN LAYOUT (Split Screen)
========================= */
.login-container {
    display: flex;
    min-height: 100vh;
    width: 100%;
    background-color: var(--background);
    font-family: var(--ui-font);
}

/* =========================
   LEFT SIDE (Brand & Sponsors)
========================= */
.login-left {
    flex: 1;
    max-width: 45%; /* Ocupa 45% da tela no desktop */
    background: linear-gradient(135deg, var(--brand-green-dark) 0%, var(--brand-green) 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 4rem;
    color: white;
    overflow: hidden;
}

/* Trazendo a sua textura de fundo original como uma marca d'água elegante */
.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url("../assets/figures/login_decoration.png") center/cover no-repeat;
    opacity: 0.15; /* Deixa bem sutil */
    mix-blend-mode: overlay;
    pointer-events: none;
}

.login-left-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    z-index: 2;
}

.btn-go-back {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-go-back:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateX(-3px);
}

.white-reduced-logo {
    height: 55px;
    width: auto;
}

/* Área de Sponsors */
.login-sponsors {
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.sponsors-title {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 1rem;
}

.sponsors-logos {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Transforma as logos dos parceiros em branco para combinar com o fundo */
.sponsor-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity 0.2s ease;
}

.sponsor-logo:hover {
    opacity: 1;
}

/* =========================
   RIGHT SIDE (Form)
========================= */
.login-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: url("../assets/figures/login_decoration2.svg") no-repeat right bottom;
    background-size: 60%;
}

.login-form-wrapper {
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 3rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(43, 55, 61, 0.08);
    border: 1px solid var(--border-color);
    position: relative;
    z-index: 2;
}

/* Centralização aplicada aqui */
.normal-logo {
    height: 70px;
    width: auto;
    margin: 0 auto 1.5rem auto; /* Centraliza a imagem */
    display: block;
}

.login-title {
    font-family: var(--title-font);
    font-size: 2rem;
    font-weight: var(--bold);
    color: var(--brand-green-dark);
    margin-bottom: 0.25rem;
    text-align: center; /* Centraliza o título */
}

.login-subtitle {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center; /* Centraliza o subtítulo */
}

/* =========================
   FORM CONTROLS
========================= */
.form-input-area {
    margin-bottom: 1.5rem;
}

.login-input-label {
    font-family: var(--ui-font);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-main);
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.login-text-input {
    border: 1px solid #d6e1da;
    border-radius: 10px;
    height: 3.2rem;
    font-size: 1rem;
    color: var(--text-main);
    background-color: #ffffff;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.login-text-input::placeholder {
    color: #a0aec0;
    font-weight: 400;
}

.login-text-input:focus {
    border-color: var(--brand-green);
    box-shadow: 0 0 0 3px rgba(41, 130, 70, 0.15);
    background-color: #ffffff;
}

/* Forgot Password Link */
.btn-dont-know-pass {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.75rem;
    color: var(--brand-green-light);
    font-weight: 600;
    text-transform: none;
    letter-spacing: normal;
    transition: color 0.2s;
}

.btn-dont-know-pass:hover {
    color: var(--brand-green-dark);
    text-decoration: underline;
}

/* Main Login Button */
.btn-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: var(--brand-green);
    border: none;
    border-radius: 10px;
    color: #ffffff;
    width: 100%;
    height: 3.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 15px rgba(41, 130, 70, 0.2);
}

.btn-login-submit:hover {
    background-color: var(--brand-green-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(41, 130, 70, 0.3);
}

.btn-login-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 10px rgba(41, 130, 70, 0.2);
}

/* Popover Styling */
.popover {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}
.popover-header {
    background-color: var(--brand-green-dark);
    color: white;
    border-radius: 12px 12px 0 0;
    font-weight: 600;
    border-bottom: none;
}
.popover-body {
    color: var(--text-main);
    font-family: var(--ui-font);
}

/* =========================
   RESPONSIVE DESIGN
========================= */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    .login-left {
        max-width: 100%;
        padding: 2rem;
        flex: 0 0 auto;
    }
    .login-left::before {
        background-size: cover;
    }
    .login-right {
        padding: 2rem 1rem;
    }
    .login-form-wrapper {
        padding: 2rem;
    }
}
