/* =====================================================
   ESTRUTURA
===================================================== */

.login-page {
    min-height: 100vh;
    display: flex;
    background: #f5f7fa;
}

/* =====================================================
   ÁREA INSTITUCIONAL (esquerda)
===================================================== */

.login-brand {
    width: 48%;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc, #e9eef4);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
}

.shape-blue {
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 200px;
    background: var(--blue-dark);
    clip-path: polygon(100% 0, 100% 100%, 0 0);
}

.shape-teal {
    position: absolute;
    bottom: 0;
    right: 15%;
    width: 300px;
    height: 230px;
    background: var(--teal);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.shape-green {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 230px;
    height: 200px;
    background: var(--green);
    clip-path: polygon(100% 100%, 0 100%, 100% 0);
}

.shape-orange {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 230px;
    background: var(--orange);
    clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.login-logo-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 2;
}

.login-logo {
    width: 100%;
    max-width: 350px;
    height: 150px;
    object-fit: contain;
    object-position: center;
}

.login-brand-text {
    margin-top: 30px;
    color: var(--text-secondary);
    max-width: 420px;
    line-height: 1.7;
    font-size: 17px;
}

/* =====================================================
   ÁREA DE LOGIN (direita)
===================================================== */

.login-area {
    width: 52%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: white;
}

.login-card {
    width: 100%;
    max-width: 480px;
    padding: 45px;
    border-radius: 22px;
    border: 1px solid #e3e8ee;
    box-shadow: 0 20px 50px rgba(22, 65, 148, 0.12);
}

.login-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--blue-dark);
    text-align: center;
    margin-bottom: 10px;
}

.login-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 35px;
}

/* =====================================================
   CAMPOS COM ÍCONE (sobrepõe o .form-control padrão só
   dentro do .login-card, para o input ficar colado ao ícone)
===================================================== */

.login-card .input-group-text {
    background: white;
    border-right: none;
    color: #7d8998;
}

.login-card .form-control {
    height: 52px;
    min-height: 52px;
    border-left: none;
    border-color: #d8e0e8;
    font-size: 14px;
}

.login-card .form-control:focus {
    box-shadow: none;
    border-color: var(--blue-medium);
}

.login-card .input-group:focus-within {
    box-shadow: 0 0 0 3px rgba(0, 139, 210, 0.1);
    border-radius: 8px;
}

.password-toggle {
    border: 1px solid #d8e0e8;
    border-left: none;
    background: white;
    color: #6e7b8b;
}

/* =====================================================
   OPÇÕES E BOTÃO
===================================================== */

.login-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 18px 0 25px;
    font-size: 14px;
}

.forgot-password {
    color: var(--blue-dark);
    text-decoration: none;
    font-weight: 500;
}

.forgot-password:hover {
    color: var(--blue-medium);
}

.btn-login {
    width: 100%;
    height: 54px;
    border: none;
    border-radius: 8px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    background: linear-gradient(135deg, var(--blue-medium), var(--blue-dark));
    transition: 0.2s;
}

.btn-login:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(22, 65, 148, 0.25);
}

.login-footer {
    text-align: center;
    margin-top: 25px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* =====================================================
   RESPONSIVIDADE
===================================================== */

@media (max-width: 992px) {
    .login-brand {
        display: none;
    }

    .login-area {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .login-area {
        padding: 20px;
    }

    .login-card {
        padding: 30px 22px;
        box-shadow: none;
        border: none;
    }

    .login-title {
        font-size: 24px;
    }
}
