body {
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(217, 181, 107, 0.14), transparent 36%),
        linear-gradient(180deg, #071019 0%, #060a10 100%);
    color: #f5f0e6;
    font-family: Inter, system-ui, sans-serif;
    color-scheme: dark;
}

a {
    color: inherit;
}

.cm-auth-shell {
    width: min(1080px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0 48px;
}

.cm-auth-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
    min-width: 0;
}

.cm-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.cm-auth-brand img {
    display: block;
    height: 44px;
    width: auto;
}

.cm-auth-brand strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.05rem;
}

.cm-auth-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
    padding: 28px;
}

.cm-auth-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
}

.cm-auth-title {
    margin: 0 0 10px;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(2rem, 5vw, 3.6rem);
    line-height: 0.95;
}

.cm-auth-lead {
    margin: 0 0 22px;
    color: rgba(245, 240, 230, 0.76);
    max-width: 58ch;
}

.cm-auth-note {
    color: rgba(245, 240, 230, 0.62);
    font-size: 0.94rem;
}

.cm-auth-form {
    display: grid;
    gap: 14px;
}

.cm-auth-fields {
    display: grid;
    gap: 12px;
}

.cm-auth-field {
    display: grid;
    gap: 6px;
}

.cm-auth-field span {
    font-weight: 600;
}

.cm-auth-field input,
.cm-auth-field textarea,
.cm-auth-field select {
    width: 100%;
    box-sizing: border-box;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.11);
    background: rgba(255, 255, 255, 0.05);
    color: #f5f0e6;
    padding: 13px 14px;
    font: inherit;
}

.cm-auth-field select {
    appearance: auto;
    background-color: #171d25;
    color: #f5f0e6;
}

.cm-auth-field option,
.cm-auth-field optgroup {
    background-color: #171d25;
    color: #f5f0e6;
}

.cm-auth-field option:checked {
    background-color: #d9b56b;
    color: #111;
}

.cm-auth-field textarea {
    min-height: 120px;
    resize: vertical;
}

.cm-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    min-width: 0;
}

.cm-auth-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 12px 18px;
    background: #d9b56b;
    color: #111;
    font-weight: 800;
    cursor: pointer;
    text-decoration: none;
}

.cm-auth-button--ghost {
    background: rgba(255, 255, 255, 0.08);
    color: #f5f0e6;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cm-auth-panel {
    display: grid;
    gap: 12px;
}

.cm-auth-pill {
    display: inline-flex;
    width: fit-content;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 181, 107, 0.16);
    color: #fdecc2;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

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

.cm-auth-list li {
    padding: 12px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.cm-auth-flash {
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px solid rgba(217, 181, 107, 0.28);
    background: rgba(217, 181, 107, 0.12);
}

.cm-auth-split {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cm-auth-mini {
    color: rgba(245, 240, 230, 0.68);
    font-size: 0.92rem;
}

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

    .cm-auth-top {
        align-items: flex-start;
        flex-direction: column;
        width: 100%;
    }

    .cm-auth-top > .cm-auth-actions {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-auth-top > .cm-auth-actions .cm-auth-button {
        width: 100%;
        box-sizing: border-box;
        padding-inline: 12px;
        white-space: nowrap;
    }
}

@media (max-width: 420px) {
    .cm-auth-shell {
        width: min(100% - 20px, 1080px);
    }

    .cm-auth-brand img {
        height: 38px;
    }

    .cm-auth-brand strong {
        font-size: 0.96rem;
    }
}
