@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@300;400;600;700;800&display=swap');

/* Layout da tela de login (cartao unico com marca + formulario). */

:root {
    --lp-roxo: #613494;
    --lp-roxo-escuro: #43008F;
    --lp-roxo-claro: #9b7ac4;
    --lp-texto: #2f2a3a;
    --lp-texto-suave: #6b6579;
    --lp-borda: #e1dce8;
    --lp-fundo-campo: #f7f5fa;
}

/* O layout compartilhado fixa 100vh; aqui o cartao pode crescer e a pagina rola. */
.main-login {
    height: auto;
    min-height: 100vh;
}

/* O site_.css force fundo branco no body, entao a arte das ondas fica aqui. */
.lp-page {
    width: 100%;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: var(--lp-texto);
    background-color: #f4f1f7;
    background-image: url('img/fundo-login.png');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
}

/* ===== Cartao unico com os dois lados na mesma altura ===== */
.lp-card {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 10px rgba(84, 39, 132, .05), 0 18px 40px rgba(84, 39, 132, .10), 0 40px 90px rgba(84, 39, 132, .14);
}

/* ===== Lado esquerdo: marca ===== */
.lp-marca {
    padding: 56px 44px;
    background: linear-gradient(214deg, var(--lp-roxo) 0%, var(--lp-roxo-escuro) 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    position: relative;
    overflow: hidden;
}

/* Brilho suave no canto, sem imagem extra. */
.lp-marca::before {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .10);
}

.lp-marca-logo {
    width: 112px;
    height: auto;
    position: relative;
}

.lp-marca h1 {
    font-size: 1.85rem;
    font-weight: 800;
    line-height: 1.2;
    position: relative;
}

.lp-marca h1 span {
    display: block;
    margin-top: 8px;
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: rgba(255, 255, 255, .92);
}

.lp-marca p {
    font-size: .98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, .85);
    position: relative;
}

/* ===== Lado direito: formulario ===== */
.lp-form-lado {
    padding: 56px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.lp-form-titulo {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.lp-form-sub {
    font-size: .95rem;
    color: var(--lp-texto-suave);
    margin-bottom: 34px;
}

.lp-campo {
    position: relative;
    margin-bottom: 20px;
}

/* .form-control entra via script do layout; a especificidade abaixo mantem o estilo do campo. */
.lp-campo input,
.lp-campo input.form-control {
    width: 100%;
    height: 58px;
    padding: 22px 48px 8px 46px;
    font-size: 1rem;
    color: var(--lp-texto);
    background: var(--lp-fundo-campo);
    border: 1.5px solid var(--lp-borda);
    border-radius: 14px;
    outline: none;
    box-shadow: none;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.lp-campo input:focus,
.lp-campo input.form-control:focus {
    background: #fff;
    border-color: var(--lp-roxo);
    box-shadow: 0 0 0 4px rgba(97, 52, 148, .12);
}

/* Rotulo flutuante: fica dentro do campo e sobe ao digitar/focar. */
.lp-campo label {
    position: absolute;
    left: 46px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    color: var(--lp-texto-suave);
    pointer-events: none;
    transition: all .18s ease;
}

.lp-campo input:focus + label,
.lp-campo input:not(:placeholder-shown) + label {
    top: 15px;
    transform: none;
    font-size: .75rem;
    font-weight: 700;
    color: var(--lp-roxo);
    letter-spacing: .3px;
}

.lp-campo-icone {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: var(--lp-roxo-claro);
    pointer-events: none;
}

.lp-ver-senha {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--lp-texto-suave);
    cursor: pointer;
    transition: background .2s ease, color .2s ease;
}

.lp-ver-senha:hover {
    background: rgba(97, 52, 148, .08);
    color: var(--lp-roxo);
}

.lp-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px 0 28px;
    font-size: .9rem;
}

.lp-links a {
    color: var(--lp-roxo);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .2s ease;
}

.lp-links a:hover {
    border-bottom-color: var(--lp-roxo);
}

.lp-btn {
    width: 100%;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    border: none;
    border-radius: 14px;
    background: linear-gradient(214deg, var(--lp-roxo) 0%, var(--lp-roxo-escuro) 100%);
    box-shadow: 0 8px 20px rgba(67, 0, 143, .28);
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
}

.lp-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(67, 0, 143, .34);
}

.lp-btn:active {
    transform: translateY(0);
}

.lp-btn[disabled] {
    opacity: .75;
    cursor: default;
    transform: none;
}

.lp-rodape {
    margin-top: 26px;
    font-size: .85rem;
    color: var(--lp-texto-suave);
    text-align: center;
}

.lp-rodape a {
    color: var(--lp-roxo);
    font-weight: 600;
    text-decoration: none;
}

/* ===== Responsivo ===== */
@media (max-width: 880px) {
    .lp-card {
        grid-template-columns: 1fr;
        max-width: 460px;
    }

    .lp-marca {
        padding: 38px 32px;
        gap: 18px;
        text-align: center;
        align-items: center;
    }

    .lp-marca h1 {
        font-size: 1.5rem;
    }

    .lp-marca h1 span {
        font-size: .95rem;
    }

    .lp-form-lado {
        padding: 34px 26px 40px;
    }
}

@media (max-width: 420px) {
    .lp-page {
        padding: 24px 12px;
    }

    .lp-form-lado {
        padding: 28px 18px 32px;
    }
}
