.cm-auth,
.cm-library-notice,
.cm-lock,
.cm-member-card {
    box-sizing: border-box;
    width: 100%;
    margin: 28px 0;
    color: #121826;
    font-family: inherit;
}

.cm-auth *,
.cm-library-notice *,
.cm-lock *,
.cm-member-card *,
.cm-course-grid * {
    box-sizing: border-box;
}

.cm-auth {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
    gap: 0;
    overflow: hidden;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.cm-panel {
    padding: 34px;
    background: #ffffff;
}

.cm-panel-dark {
    background: #13251f;
    color: #ffffff;
}

.cm-kicker,
.cm-course-label {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #dcefe8;
    color: #145846;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.cm-panel-dark .cm-kicker {
    background: rgba(255,255,255,0.14);
    color: #e7fff6;
}

.cm-panel h2,
.cm-lock h2,
.cm-library-notice h2,
.cm-member-card h2 {
    margin: 0 0 12px;
    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.08;
    letter-spacing: 0;
}

.cm-panel p,
.cm-lock p,
.cm-library-notice p,
.cm-member-card p {
    margin: 0 0 20px;
    color: #526070;
    font-size: 1rem;
    line-height: 1.65;
}

.cm-panel-dark p {
    color: #d7e6df;
}

.cm-benefits {
    display: grid;
    gap: 10px;
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.cm-benefits li {
    padding: 12px 14px;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
}

.cm-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    color: #5d6878;
    font-size: 0.9rem;
    font-weight: 800;
}

.cm-tabs span:first-child {
    color: #145846;
}

.cm-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    border: 1px solid #e1e8f0;
    border-radius: 8px;
    background: #f8fafc;
}

.cm-form + .cm-form {
    margin-top: 16px;
}

.cm-form-muted {
    background: #ffffff;
}

.cm-form h3 {
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.cm-form label {
    display: grid;
    gap: 7px;
    color: #263244;
    font-size: 0.92rem;
    font-weight: 800;
}

.cm-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #bdc8d6;
    border-radius: 6px;
    background: #ffffff;
    color: #111827;
    font-size: 1rem;
}

.cm-form button,
.cm-button,
.cm-course-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-height: 46px;
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: #16735f;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.cm-form button {
    width: 100%;
}

.cm-form button:hover,
.cm-button:hover,
.cm-course-link:hover,
.cm-form button:focus,
.cm-button:focus,
.cm-course-link:focus {
    background: #0f5d4c;
    color: #ffffff;
    text-decoration: none;
}

.cm-button-secondary {
    background: #ffffff;
    color: #145846;
    border: 1px solid #b7c7c0;
}

.cm-button-secondary:hover,
.cm-button-secondary:focus {
    background: #eef7f3;
    color: #145846;
}

.cm-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cm-alert {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-left: 4px solid #b42318;
    border-radius: 6px;
    background: #fff1f0;
    color: #7a271a;
    font-weight: 700;
}

.cm-library-notice,
.cm-lock,
.cm-member-card {
    max-width: 920px;
    padding: 30px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #f8fafc;
}

.cm-course-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 28px 0;
}

.cm-course-card {
    display: flex;
    min-height: 100%;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    border: 1px solid #d9e2ef;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.cm-course-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.cm-course-card h3 {
    margin: 0;
    font-size: 1.22rem;
    line-height: 1.25;
    letter-spacing: 0;
}

.cm-course-card h3 a {
    color: #111827;
    text-decoration: none;
}

.cm-course-card p {
    margin: 0;
    color: #526070;
    line-height: 1.6;
}

.cm-course-link {
    margin-top: auto;
}

.cm-video-wrap {
    margin: 0 0 26px;
    overflow: hidden;
    border-radius: 8px;
    background: #111827;
}

@media (max-width: 780px) {
    .cm-auth {
        grid-template-columns: 1fr;
    }

    .cm-panel {
        padding: 24px;
    }

    .cm-panel h2,
    .cm-lock h2,
    .cm-library-notice h2,
    .cm-member-card h2 {
        font-size: 1.65rem;
    }
}
