:root {
    --roxo-escuro: #4C1D95;
    --roxo-medio:  #7C3AED;
    --roxo-claro:  #A78BFA;
    --branco:      #FFFFFF;
    --cinza-100:   #F3F4F6;
    --cinza-300:   #D1D5DB;
    --cinza-600:   #4B5563;
    --cinza-900:   #111827;
    --erro:        #DC2626;
    --erro-bg:     #FEE2E2;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--branco);
}

/* ─── Container principal ─── */
.educ-login-page {
    display: flex;
    min-height: 100vh;
}

/* ═══════════════════════════════════
   LADO ESQUERDO
   ═══════════════════════════════════ */
.educ-login-esquerdo {
    width: 50%;
    background: linear-gradient(145deg, var(--roxo-escuro) 0%, var(--roxo-medio) 100%);
    display: flex;
    flex-direction: column;
    padding: 48px;
    position: relative;
    overflow: hidden;
}

.educ-login-logo {
    color: var(--branco);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    position: relative;
    z-index: 1;
}

.educ-login-logo span {
    color: var(--roxo-claro);
}

.educ-login-frase-mobile {
    display: none;
}

.educ-login-hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 1;
}

.educ-login-frase {
    color: var(--branco);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.5px;
}

.educ-login-ilustracao {
    position: absolute;
    bottom: -40px;
    right: -60px;
    opacity: 0.18;
    pointer-events: none;
}

.educ-login-rodape-esq {
    color: var(--roxo-claro);
    font-size: 13px;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════
   LADO DIREITO
   ═══════════════════════════════════ */
.educ-login-direito {
    width: 50%;
    background: var(--branco);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
}

.educ-login-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* Placeholder logo da empresa (multi-tenant) */
.educ-logo-empresa {
    width: 80px;
    height: 80px;
    background: var(--cinza-100);
    border: 2px dashed var(--cinza-300);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 32px;
    color: var(--cinza-600);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    line-height: 1.5;
}

/* Títulos */
.educ-login-titulo {
    font-size: 26px;
    font-weight: 700;
    color: var(--cinza-900);
    letter-spacing: -0.3px;
    margin-bottom: 6px;
}

.educ-login-subtitulo {
    font-size: 15px;
    color: var(--cinza-600);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* Mensagem de erro */
.educ-erro {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--erro-bg);
    border: 1px solid #FECACA;
    color: var(--erro);
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
}

.educ-erro svg {
    flex-shrink: 0;
    margin-top: 1px;
}

/* Campos */
.educ-campo {
    margin-bottom: 20px;
}

.educ-campo label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--cinza-900);
    margin-bottom: 6px;
}

.educ-campo-input {
    position: relative;
}

.educ-campo input[type="email"],
.educ-campo input[type="password"],
.educ-campo input[type="text"] {
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid var(--cinza-300);
    border-radius: 8px;
    font-size: 15px;
    color: var(--cinza-900);
    background: var(--branco);
    transition: border-color 0.15s, box-shadow 0.15s;
    outline: none;
    appearance: none;
}

.educ-campo input:focus {
    border-color: var(--roxo-medio);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.12);
}

/* padding extra para acomodar botão olho */
.educ-campo input[type="password"],
.educ-campo input[type="text"].educ-campo-senha {
    padding-right: 46px;
}

/* Botão mostrar/esconder senha */
.educ-btn-olho {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--cinza-600);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: color 0.15s;
}

.educ-btn-olho:hover {
    color: var(--roxo-medio);
}

/* Linha "Lembrar de mim" / "Esqueci minha senha" */
.educ-login-linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px;
}

.educ-lembrar {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--cinza-600);
    cursor: pointer;
    user-select: none;
}

.educ-lembrar input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--roxo-medio);
    cursor: pointer;
    flex-shrink: 0;
}

.educ-esqueci {
    font-size: 14px;
    color: var(--roxo-medio);
    text-decoration: none;
    font-weight: 500;
}

.educ-esqueci:hover {
    color: var(--roxo-escuro);
    text-decoration: underline;
}

/* Botão Entrar */
.educ-btn-entrar {
    width: 100%;
    padding: 13px;
    background: var(--roxo-medio);
    color: var(--branco);
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.1px;
    transition: background 0.2s ease, transform 0.1s ease;
}

.educ-btn-entrar:hover {
    background: var(--roxo-escuro);
}

.educ-btn-entrar:active {
    transform: scale(0.99);
}

/* Nota de suporte */
.educ-nota-suporte {
    font-size: 13px;
    color: var(--cinza-600);
    text-align: center;
    margin-top: 28px;
    line-height: 1.6;
}

/* Garante que a admin bar não apareça mesmo se enfileirada */
#wpadminbar       { display: none !important; }
html.wp-toolbar   { padding-top: 0 !important; }

/* ═══════════════════════════════════
   RESPONSIVO — mobile-first
   ═══════════════════════════════════ */
@media (max-width: 767px) {
    .educ-login-page {
        flex-direction: column;
    }

    .educ-login-esquerdo {
        width: 100%;
        min-height: 30vh;
        max-height: 30vh;
        padding: 24px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .educ-login-hero,
    .educ-login-ilustracao,
    .educ-login-rodape-esq {
        display: none;
    }

    .educ-login-frase-mobile {
        display: block;
        color: rgba(255, 255, 255, 0.85);
        font-size: 14px;
        font-weight: 400;
        margin-top: 4px;
    }

    .educ-login-logo {
        font-size: 17px;
    }

    .educ-login-direito {
        width: 100%;
        padding: 28px 20px 48px;
        align-items: flex-start;
    }

    .educ-login-form-wrap {
        max-width: 100%;
    }
}
