:root {
    --gerocog-bg: #f5f2eb;
    --gerocog-card: #ffffff;
    --gerocog-text: #24332d;
    --gerocog-muted: #66756f;
    --gerocog-accent: #456c5b;
    --gerocog-accent-dark: #315144;
    --gerocog-border: #d9e0dc;
    --gerocog-warning: #fff8e5;
}

.gerocog-shell {
    box-sizing: border-box;
    width: min(1120px, calc(100% - 32px));
    margin: 40px auto;
    color: var(--gerocog-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gerocog-shell *,
.gerocog-shell *::before,
.gerocog-shell *::after {
    box-sizing: border-box;
}

.gerocog-login-shell {
    width: min(520px, calc(100% - 28px));
    min-height: 62vh;
    display: grid;
    place-items: center;
}

.gerocog-card {
    background: var(--gerocog-card);
    border: 1px solid var(--gerocog-border);
    border-radius: 18px;
    padding: 28px;
    box-shadow: 0 12px 35px rgba(27, 49, 41, 0.07);
}

.gerocog-login-card {
    width: 100%;
    padding: 38px;
}

.gerocog-brand {
    color: var(--gerocog-accent);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.gerocog-shell h1,
.gerocog-shell h2 {
    color: var(--gerocog-text);
    line-height: 1.18;
}

.gerocog-shell h1 {
    font-size: clamp(1.9rem, 4vw, 3rem);
    margin: 0 0 14px;
}

.gerocog-login-card h1 {
    font-size: clamp(1.8rem, 5vw, 2.35rem);
}

.gerocog-shell h2 {
    font-size: 1.35rem;
    margin: 8px 0 10px;
}

.gerocog-shell p {
    color: var(--gerocog-muted);
    line-height: 1.65;
}

.gerocog-login-card form p {
    margin: 18px 0;
}

.gerocog-login-card label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
}

.gerocog-login-card input[type="text"],
.gerocog-login-card input[type="password"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--gerocog-border);
    border-radius: 10px;
    padding: 10px 12px;
    font-size: 16px;
}

.gerocog-login-card .login-remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.gerocog-login-card input[type="submit"],
.gerocog-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border: 0;
    border-radius: 10px;
    background: var(--gerocog-accent);
    color: #fff !important;
    font-weight: 750;
    text-decoration: none !important;
    padding: 12px 20px;
    cursor: pointer;
    transition: transform .15s ease, background .15s ease;
}

.gerocog-login-card input[type="submit"] {
    width: 100%;
    font-size: 1rem;
}

.gerocog-login-card input[type="submit"]:hover,
.gerocog-button:hover {
    background: var(--gerocog-accent-dark);
    transform: translateY(-1px);
}

.gerocog-button-secondary {
    background: transparent;
    border: 1px solid var(--gerocog-accent);
    color: var(--gerocog-accent) !important;
}

.gerocog-link,
.gerocog-login-links a,
.gerocog-user-box a {
    color: var(--gerocog-accent);
    font-weight: 700;
}

.gerocog-login-links {
    margin-top: 18px;
    text-align: center;
}

.gerocog-login-card > .gerocog-link {
    display: block;
    margin-top: 20px;
    text-align: center;
}

.gerocog-course-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 28px;
}

.gerocog-eyebrow {
    margin: 0 0 8px !important;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
}

.gerocog-user-box {
    min-width: 190px;
    padding: 14px 16px;
    border: 1px solid var(--gerocog-border);
    border-radius: 12px;
    background: rgba(255,255,255,.72);
}

.gerocog-user-box span,
.gerocog-user-box a {
    display: block;
}

.gerocog-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.gerocog-feature-card {
    grid-column: 1 / -1;
    padding: 34px;
}

.gerocog-card-number {
    display: inline-grid;
    place-items: center;
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    border-radius: 999px;
    background: #e7efeb;
    color: var(--gerocog-accent-dark);
    font-weight: 800;
    font-size: .82rem;
}

.gerocog-warning-card {
    grid-column: 1 / -1;
    background: var(--gerocog-warning);
}

@media (max-width: 720px) {
    .gerocog-shell {
        margin: 20px auto;
    }

    .gerocog-card,
    .gerocog-login-card,
    .gerocog-feature-card {
        padding: 22px;
        border-radius: 14px;
    }

    .gerocog-course-header {
        display: block;
    }

    .gerocog-user-box {
        margin-top: 18px;
    }

    .gerocog-grid {
        grid-template-columns: 1fr;
    }

    .gerocog-feature-card,
    .gerocog-warning-card {
        grid-column: auto;
    }

    .gerocog-button {
        width: 100%;
        text-align: center;
    }
}

.gerocog-notice {
    margin: 18px 0;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid var(--gerocog-border);
    line-height: 1.5;
}

.gerocog-notice-success {
    background: #edf7f1;
    border-color: #b9d8c5;
    color: #264c38;
}

.gerocog-notice-error {
    background: #fff1f0;
    border-color: #e4b8b4;
    color: #7a2d27;
}


/* v1.3.1 — campo de senha visível quando solicitado */
.gerocog-password-field {
    position: relative;
    width: 100%;
}

.gerocog-password-field input[type="password"],
.gerocog-password-field input[type="text"] {
    padding-right: 94px !important;
}

.gerocog-password-toggle {
    position: absolute;
    right: 7px;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 34px;
    padding: 4px 8px;
    border: 1px solid #d7d1e8;
    border-radius: 8px;
    background: #fff;
    color: #39256f;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
}

.gerocog-password-toggle:hover,
.gerocog-password-toggle:focus-visible {
    background: #f4f0ff;
    border-color: #7757d9;
    outline: none;
}

@media (max-width: 480px) {
    .gerocog-password-toggle-text {
        display: none;
    }

    .gerocog-password-field input[type="password"],
    .gerocog-password-field input[type="text"] {
        padding-right: 50px !important;
    }
}


/* v1.3.2 — botão Mostrar/Ocultar senha com fundo branco */
.gerocog-login-card .gerocog-password-toggle,
.gerocog-login-card .gerocog-password-toggle:hover,
.gerocog-login-card .gerocog-password-toggle:focus-visible,
.gerocog-login-card .gerocog-password-toggle[aria-pressed="true"] {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #39256f !important;
    border-color: #d7d1e8 !important;
    box-shadow: none !important;
}
