/* ==================== LOGIN.CSS ==================== */
/* Estilos específicos para a página de login */

.login-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

.login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

/* Form Card */
.form-card {
    background: var(--white);
    border-radius: 2rem;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.form-head {
    text-align: center;
    margin-bottom: 2rem;
}

.form-head h1 {
    font-size: 1.75rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.form-head p {
    color: var(--gray-600);
    font-size: 0.875rem;
}

.form-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.field-row {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-row-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.input-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.esqueceu {
    font-size: 0.75rem;
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.esqueceu:hover {
    text-decoration: underline;
    opacity: 0.8;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--gray-400);
    width: 1.25rem;
    height: 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.input-field {
    width: 100%;
    padding: 0.875rem 1rem 0.875rem 2.75rem;
    border: 1.5px solid var(--gray-200);
    border-radius: 0.75rem;
    font-family: 'Poppins', sans-serif;
    font-size: 0.875rem;
    transition: all 0.2s ease;
    background: var(--white);
}

.input-field:focus {
    outline: none;
    border-color: var(--purple-primary);
    box-shadow: 0 0 0 3px rgba(105, 0, 184, 0.1);
}

.input-field::placeholder {
    color: var(--gray-400);
    font-weight: 400;
}

.toggle-senha {
    position: absolute;
    right: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-400);
    display: flex;
    align-items: center;
    padding: 0;
    transition: color 0.2s;
}

.toggle-senha:hover {
    color: var(--gray-600);
}

.btn-primario {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
    margin-top: 0.5rem;
}

.btn-primario:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(105, 0, 184, 0.3);
}

.form-footer-links {
    text-align: center;
    margin-top: 1.5rem;
    font-size: 0.875rem;
    color: var(--gray-600);
}

.link-roxo {
    color: var(--purple-primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity 0.2s;
}

.link-roxo:hover {
    text-decoration: underline;
    opacity: 0.8;
}

/* Painel Institucional */
.painel-col {
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    border-radius: 2rem;
    padding: 2rem;
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 500px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.painel-col .bg-grad {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 200 200" opacity="0.1"><path fill="white" d="M45.3,-71.6C58.7,-63.5,68.9,-48.1,75.5,-31.5C82.1,-14.9,85.1,3,80.6,19.6C76.1,36.2,64.1,51.5,49.3,61.9C34.5,72.3,17.3,77.9,-1.1,79.5C-19.5,81.1,-39,78.7,-55.1,69.3C-71.2,59.9,-83.9,43.5,-87.4,25.3C-90.9,7.1,-85.2,-12.9,-75.6,-29.5C-66,-46.1,-52.5,-59.3,-37.2,-67.3C-21.9,-75.3,-4.9,-78.1,11.9,-75.1C28.7,-72.1,45.3,-71.6,45.3,-71.6Z" transform="translate(100 100)"/></svg>') center/cover no-repeat;
    pointer-events: none;
}

.painel-col .top {
    position: relative;
    z-index: 2;
    text-align: center;
}

.icon-wrap {
    width: 4rem;
    height: 4rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.painel-col h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.painel-col .desc {
    opacity: 0.9;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.metrics-painel {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 2rem;
    position: relative;
    z-index: 2;
}

.metric-card-painel {
    text-align: center;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(4px);
}

.metric-card-painel .val {
    font-size: 1.75rem;
    font-weight: 800;
}

.metric-card-painel .lbl {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Banner Segurança Mobile */
.banner-seguranca-mobile {
    display: none;
    background: var(--gray-100);
    border-radius: 1rem;
    padding: 1rem;
    margin-top: 1.5rem;
    align-items: center;
    gap: 1rem;
}

.icon-shield {
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(105, 0, 184, 0.1);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--purple-primary);
}

.banner-seguranca-mobile h4 {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.banner-seguranca-mobile p {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* Hero Mobile */
.mobile-hero {
    display: none;
    text-align: center;
    margin-bottom: 2rem;
}

.icon-circle {
    width: 4rem;
    height: 4rem;
    background: linear-gradient(135deg, var(--purple-primary) 0%, var(--purple-dark) 100%);
    border-radius: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

.icon-circle svg {
    width: 2rem;
    height: 2rem;
}

.mobile-hero h2 {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.mobile-hero p {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Responsivo */
@media (max-width: 768px) {
    .login-container {
        padding: 1rem 1rem 5rem 1rem;
    }

    .login-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .painel-col {
        display: none;
    }

    .banner-seguranca-mobile {
        display: flex;
    }

    .form-card {
        padding: 1.5rem;
        margin-bottom: 0;
    }

    .mobile-hero {
        display: block;
    }

    .form-head {
        display: none;
    }
}