/* =========================
   PDX PRO - AUTH LOGIN
   Arquivo CSS separado
   Mobile First
========================= */

/* =========================
   PALETA OFICIAL PDX PRO
========================= */

:root {
    --pdx-primary: #0B1F3A;
    --pdx-secondary: #0057B8;
    --pdx-accent: #00AEEF;
    --pdx-bg: #F4F8FC;
    --pdx-card: #FFFFFF;
    --pdx-text: #111827;
    --pdx-muted: #64748B;
    --pdx-border: #DCE7F3;
    --pdx-shadow: 0 8px 24px rgba(11, 31, 58, 0.08);
    --pdx-shadow-lg: 0 20px 60px rgba(11, 31, 58, 0.18);
}

/* =========================
   BASE DA TELA
========================= */

.pdx-auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Montserrat", Arial, sans-serif;
    background: var(--pdx-primary);
    color: var(--pdx-text);
}

.pdx-login-page {
    min-height: 100vh;
}

.pdx-login-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background:
        linear-gradient(
            rgba(4, 16, 31, 0.82),
            rgba(4, 16, 31, 0.88)
        ),
        url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?q=80&w=1600&auto=format&fit=crop");
    background-size: cover;
    background-position: center;
}

.pdx-login-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(
            circle at top right,
            rgba(0, 174, 239, 0.28),
            transparent 34%
        );
    pointer-events: none;
}

/* =========================
   CONTAINER MOBILE FIRST
========================= */

.pdx-login-container {
    position: relative;
    z-index: 2;
    width: min(100% - 32px, 1180px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    align-items: start;
    padding: 28px 0 42px;
}

/* =========================
   PAINEL INSTITUCIONAL
========================= */

.pdx-login-brand-panel {
    color: #FFFFFF;
    text-align: center;
}

.pdx-login-logo-link {
    display: inline-flex;
    justify-content: center;
    margin-bottom: 14px;
}

.pdx-login-logo {
    width: 70px;
    height: 70px;
    object-fit: contain;
}

.pdx-login-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 16px;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.18);
    color: #DCEEFF;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pdx-login-brand-panel h1 {
    max-width: 760px;
    margin: 18px auto 0;
    color: #FFFFFF;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.pdx-login-brand-panel p {
    max-width: 720px;
    margin: 14px auto 0;
    color: #DCE7F5;
    font-size: 15px;
    line-height: 1.65;
}

.pdx-login-benefits {
    display: none;
}

.pdx-login-benefits div {
    padding: 14px;
    border: 1px solid rgba(220, 231, 245, 0.22);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
}

.pdx-login-benefits strong {
    display: block;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
}

.pdx-login-benefits span {
    display: block;
    margin-top: 2px;
    color: #DCE7F5;
    font-size: 12px;
}

/* =========================
   CARD DO LOGIN
========================= */

.pdx-login-card-wrapper {
    width: 100%;
}

.pdx-login-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 24px;
    background: var(--pdx-card);
    border: 1px solid var(--pdx-border);
    border-radius: 26px;
    box-shadow: var(--pdx-shadow-lg);
}

.pdx-login-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
}

.pdx-login-card-logo {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex: 0 0 auto;
}

.pdx-login-card-header h2 {
    margin: 0;
    color: var(--pdx-primary);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}

.pdx-login-card-header p {
    margin: 3px 0 0;
    color: var(--pdx-muted);
    font-size: 13px;
}

/* =========================
   FORMULÁRIO
========================= */

.pdx-login-form {
    display: grid;
    gap: 18px;
}

.pdx-form-group {
    display: grid;
    gap: 8px;
}

.pdx-form-group label {
    color: var(--pdx-primary);
    font-size: 14px;
    font-weight: 700;
}

.pdx-form-control {
    width: 100%;
    min-height: 52px;
    padding: 0 16px;
    border: 1px solid var(--pdx-border);
    border-radius: 14px;
    background: #FFFFFF;
    color: var(--pdx-text);
    font-size: 15px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pdx-form-control::placeholder {
    color: #94A3B8;
}

.pdx-form-control:focus {
    border-color: var(--pdx-accent);
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.18);
}

.pdx-password-field {
    position: relative;
}

.pdx-password-input {
    padding-right: 96px;
}

.pdx-password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: rgba(0, 174, 239, 0.12);
    color: var(--pdx-secondary);
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.pdx-password-toggle:hover {
    background: var(--pdx-secondary);
    color: #FFFFFF;
}

/* =========================
   OPÇÕES DO FORMULÁRIO
========================= */

.pdx-login-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pdx-remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--pdx-muted);
    font-size: 14px;
    cursor: pointer;
}

.pdx-remember input {
    width: 16px;
    height: 16px;
    accent-color: var(--pdx-secondary);
}

.pdx-forgot-link {
    color: var(--pdx-secondary);
    font-size: 14px;
    font-weight: 700;
}

.pdx-forgot-link:hover {
    color: var(--pdx-accent);
}

/* =========================
   BOTÕES E LINKS
========================= */

.pdx-login-button {
    min-height: 54px;
    width: 100%;
    border: 0;
    border-radius: 999px;
    background: var(--pdx-secondary);
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 15px 35px rgba(0, 87, 184, 0.30);
    transition: background 0.2s ease, transform 0.2s ease;
}

.pdx-login-button:hover {
    background: var(--pdx-accent);
    transform: translateY(-2px);
}

.pdx-back-home {
    display: inline-flex;
    justify-content: center;
    color: var(--pdx-muted);
    font-size: 13px;
    font-weight: 700;
}

.pdx-back-home:hover {
    color: var(--pdx-secondary);
}

/* =========================
   TABLET
   Ajuste principal:
   - reduz altura do bloco institucional
   - aproxima o card de login da área visível
   - mantém boa leitura sem empurrar o formulário
========================= */

@media (min-width: 768px) and (max-width: 1023px) {
    .pdx-login-container {
        width: min(100% - 48px, 760px);
        gap: 24px;
        padding: 34px 0 54px;
    }

    .pdx-login-logo {
        width: 72px;
        height: 72px;
    }

    .pdx-login-brand-panel h1 {
        max-width: 720px;
        margin-top: 18px;
        font-size: 40px;
        line-height: 1.12;
    }

    .pdx-login-brand-panel p {
        max-width: 680px;
        margin-top: 14px;
        font-size: 16px;
        line-height: 1.65;
    }

    .pdx-login-benefits {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        margin-top: 22px;
    }

    .pdx-login-card {
        max-width: 560px;
        padding: 34px;
    }

    .pdx-login-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =========================
   NOTEBOOK / DESKTOP
   Preserva o visual que foi aprovado
========================= */

@media (min-width: 1024px) {
    .pdx-login-container {
        grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
        gap: 54px;
        align-items: center;
        padding: 48px 0;
    }

    .pdx-login-brand-panel {
        text-align: left;
    }

    .pdx-login-logo-link {
        justify-content: flex-start;
        margin-bottom: 20px;
    }

    .pdx-login-logo {
        width: 76px;
        height: 76px;
    }

    .pdx-login-brand-panel h1,
    .pdx-login-brand-panel p {
        margin-left: 0;
        margin-right: 0;
    }

    .pdx-login-brand-panel h1 {
        max-width: 780px;
        margin-top: 22px;
        font-size: 58px;
        line-height: 1.1;
    }

    .pdx-login-brand-panel p {
        max-width: 720px;
        margin-top: 18px;
        font-size: 16px;
        line-height: 1.8;
    }

    .pdx-login-benefits {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
        max-width: 720px;
        margin-top: 24px;
    }

    .pdx-login-card {
        margin-right: 0;
        padding: 34px;
    }

    .pdx-login-options {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

/* =========================
   MOBILE
   Ajuste principal:
   - reduz logo, título e descrição
   - remove os cards de benefícios
   - sobe o formulário de login
========================= */

@media (max-width: 767px) {
    .pdx-login-hero {
        align-items: flex-start;
        min-height: 100vh;
        background-position: center top;
    }

    .pdx-login-container {
        width: min(100% - 32px, 460px);
        gap: 20px;
        padding: 24px 0 40px;
    }

    .pdx-login-logo-link {
        margin-bottom: 12px;
    }

    .pdx-login-logo {
        width: 64px;
        height: 64px;
    }

    .pdx-login-badge {
        padding: 6px 14px;
        font-size: 11px;
    }

    .pdx-login-brand-panel h1 {
        margin-top: 16px;
        font-size: 30px;
        line-height: 1.14;
    }

    .pdx-login-brand-panel p {
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.6;
    }

    .pdx-login-benefits {
        display: none;
    }

    .pdx-login-card {
        padding: 24px;
    }

    .pdx-login-card-header {
        margin-bottom: 22px;
    }
}

/* =========================
   MOBILE PEQUENO
========================= */

@media (max-width: 420px) {
    .pdx-login-container {
        width: min(100% - 24px, 420px);
        gap: 18px;
        padding: 22px 0 34px;
    }

    .pdx-login-logo {
        width: 58px;
        height: 58px;
    }

    .pdx-login-brand-panel h1 {
        font-size: 27px;
    }

    .pdx-login-brand-panel p {
        font-size: 14px;
    }

    .pdx-login-card {
        padding: 22px;
        border-radius: 22px;
    }

    .pdx-login-card-header {
        align-items: flex-start;
        gap: 12px;
    }

    .pdx-login-card-logo {
        width: 48px;
        height: 48px;
    }

    .pdx-login-card-header h2 {
        font-size: 21px;
    }

    .pdx-form-control {
        min-height: 50px;
    }
}

/* =========================
   CELULARES MUITO BAIXOS
   Evita que o card fique excessivamente distante
========================= */

@media (max-height: 740px) and (max-width: 767px) {
    .pdx-login-container {
        padding-top: 18px;
        gap: 16px;
    }

    .pdx-login-logo {
        width: 52px;
        height: 52px;
    }

    .pdx-login-brand-panel h1 {
        font-size: 25px;
        margin-top: 12px;
    }

    .pdx-login-brand-panel p {
        font-size: 13px;
        line-height: 1.5;
    }

    .pdx-login-card {
        padding: 20px;
    }
}
