:root {
    --auth-primary: #16a34a;
    --auth-secondary: #020617;
    --auth-bg-soft: #f8fafc;
    --auth-text: #0f172a;
    --auth-muted: #64748b;
    --auth-border: #dbe3ef;
    --auth-card: rgba(255, 255, 255, 0.92);
    --auth-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.mc-auth-page {
    min-height: 100vh;
    margin: 0;
    color: var(--auth-text);
    background:
            radial-gradient(circle at top left, color-mix(in srgb, var(--auth-primary) 22%, transparent), transparent 34%),
            radial-gradient(circle at bottom right, color-mix(in srgb, var(--auth-secondary) 16%, transparent), transparent 34%),
            linear-gradient(135deg, #f8fafc 0%, #eef4ff 52%, color-mix(in srgb, var(--auth-primary) 8%, #ffffff) 100%);
    position: relative;
    overflow-x: hidden;
}

.mc-auth-page::before,
.mc-auth-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    z-index: 0;
}

.mc-auth-page::before {
    width: 230px;
    height: 230px;
    left: -78px;
    top: -78px;
    background-image: radial-gradient(color-mix(in srgb, var(--auth-primary) 28%, transparent) 1.4px, transparent 1.4px);
    background-size: 14px 14px;
    opacity: 0.66;
}

.mc-auth-page::after {
    width: 280px;
    height: 280px;
    right: -90px;
    bottom: -90px;
    background-image: radial-gradient(color-mix(in srgb, var(--auth-secondary) 20%, transparent) 1.4px, transparent 1.4px);
    background-size: 14px 14px;
    opacity: 0.42;
}

.mc-auth-wrapper {
    width: min(1180px, calc(100% - 40px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 42px 0;
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(320px, 1fr) minmax(380px, 460px);
    align-items: center;
    gap: 64px;
}

.mc-auth-wrapper-centered {
    grid-template-columns: minmax(360px, 460px);
    justify-content: center;
}

.mc-auth-hero {
    min-width: 0;
}

.mc-auth-club-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 34px;
}

.mc-auth-club-mark {
    width: 54px;
    height: 54px;
    border-radius: 18px;
    display: grid;
    place-items: center;
    background: var(--auth-primary);
    color: #ffffff;
    font-size: 22px;
    font-weight: 950;
    box-shadow: 0 18px 38px color-mix(in srgb, var(--auth-primary) 30%, transparent);
    position: relative;
    overflow: visible;
}

.mc-auth-club-mark::after {
    content: "";
    width: 17px;
    height: 17px;
    border: 3px solid #ffffff;
    border-radius: 999px;
    background: var(--auth-secondary);
    position: absolute;
    right: -3px;
    bottom: -3px;
}

.mc-auth-club-mark-image {
    background: #ffffff !important;
    overflow: hidden;
    padding: 6px;
    border: 1px solid color-mix(in srgb, var(--auth-primary) 24%, rgba(15, 23, 42, 0.10));
}

.mc-auth-club-mark-image::after {
    display: none;
}

.mc-auth-club-mark-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.mc-auth-club-name {
    margin: 0;
    color: var(--auth-secondary);
    font-size: 17px;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.mc-auth-club-context {
    display: block;
    margin-top: 4px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 800;
}

.mc-auth-kicker {
    color: var(--auth-primary);
    font-size: 13px;
    font-weight: 950;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

.mc-auth-title {
    margin: 16px 0 0;
    max-width: 680px;
    font-size: clamp(44px, 5.8vw, 70px);
    line-height: 0.94;
    letter-spacing: -0.075em;
    color: var(--auth-secondary);
}

.mc-auth-title-dark {
    color: var(--auth-secondary);
}

.mc-auth-description {
    margin: 24px 0 0;
    max-width: 650px;
    color: var(--auth-muted);
    font-size: 18px;
    line-height: 1.6;
    font-weight: 650;
}

.mc-auth-hero-actions {
    margin-top: 34px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mc-auth-card {
    background: var(--auth-card);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(226, 232, 240, 0.92);
    border-radius: 30px;
    box-shadow: var(--auth-shadow);
    padding: 34px;
    overflow: hidden;
}

.mc-auth-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.mc-auth-logo {
    height: 54px;
    width: auto;
    object-fit: contain;
}

.mc-auth-card-club {
    display: grid;
    justify-items: center;
    text-align: center;
    gap: 8px;
    margin-bottom: 24px;
}

.mc-auth-card-club .mc-auth-club-mark {
    margin-bottom: 8px;
}

.mc-auth-card-title {
    margin: 0;
    color: var(--auth-text);
    font-size: 26px;
    font-weight: 950;
    line-height: 1.08;
    letter-spacing: -0.055em;
    text-align: center;
}

.mc-auth-card-subtitle {
    margin: 10px auto 0;
    max-width: 340px;
    color: var(--auth-muted);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.5;
    text-align: center;
}

.mc-auth-access-pill {
    min-height: 28px;
    padding: 0 13px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--auth-primary) 12%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--auth-primary) 28%, #ffffff);
    color: var(--auth-primary);
    font-size: 12px;
    font-weight: 950;
}

.mc-auth-form {
    margin-top: 24px;
    display: grid;
    gap: 16px;
}

.mc-auth-field {
    display: grid;
    gap: 7px;
}

.mc-auth-field label {
    color: #334155;
    font-size: 13px;
    font-weight: 950;
}

.mc-auth-input-wrap {
    position: relative;
}

.mc-auth-input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 15px;
    pointer-events: none;
}

.mc-auth-input {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 0 15px;
    background: #ffffff;
    color: var(--auth-text);
    font-size: 15px;
    font-weight: 800;
    outline: none;
    transition: border-color 0.14s ease, box-shadow 0.14s ease, transform 0.14s ease;
}

.mc-auth-input-with-icon {
    padding-left: 44px;
}

.mc-auth-input:focus,
.mc-auth-card .mc-textarea:focus {
    border-color: var(--auth-primary);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--auth-primary) 14%, transparent);
}

.mc-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 2px;
    color: var(--auth-muted);
    font-size: 13px;
    font-weight: 750;
}

.mc-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.mc-auth-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--auth-primary);
}

.mc-auth-link {
    color: var(--auth-primary);
    font-weight: 950;
    text-decoration: none;
}

.mc-auth-link:hover {
    text-decoration: underline;
}

.mc-auth-actions {
    display: grid;
    gap: 12px;
    margin-top: 4px;
}

.mc-auth-btn {
    min-height: 52px;
    border: 0;
    border-radius: 16px;
    padding: 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 950;
    text-decoration: none;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.mc-auth-btn:hover {
    transform: translateY(-1px);
}

.mc-auth-btn-primary {
    background: var(--auth-primary);
    color: #ffffff;
    box-shadow: 0 18px 34px color-mix(in srgb, var(--auth-primary) 30%, transparent);
}

.mc-auth-btn-primary:hover {
    background: color-mix(in srgb, var(--auth-primary) 86%, #020617);
}

.mc-auth-btn-secondary {
    background: #ffffff;
    color: var(--auth-secondary);
    border: 1px solid var(--auth-border);
}

.mc-auth-btn-secondary:hover {
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}

.mc-auth-info {
    margin-top: 18px;
    padding: 15px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--auth-primary) 8%, #ffffff);
    border: 1px solid color-mix(in srgb, var(--auth-primary) 16%, #ffffff);
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #334155;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
}

.mc-auth-info-icon {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--auth-primary) 14%, #ffffff);
    color: var(--auth-primary);
    font-weight: 950;
}

.mc-auth-help {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--auth-border);
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.mc-auth-powered {
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--auth-muted);
    font-size: 12px;
    font-weight: 850;
}

.mc-auth-powered img {
    height: 28px;
    width: auto;
    display: block;
}

.mc-auth-alert {
    margin: 0 0 18px;
    padding: 13px 15px;
    border-radius: 16px;
    font-size: 13px;
    font-weight: 850;
    line-height: 1.45;
}

.mc-auth-alert-error {
    background: #fee2e2;
    border: 1px solid #fca5a5;
    color: #991b1b;
}

.mc-auth-alert-success {
    background: #dcfce7;
    border: 1px solid #86efac;
    color: #166534;
}

.mc-auth-alert-warning {
    background: #fef3c7;
    border: 1px solid #fcd34d;
    color: #92400e;
}

.mc-field-error {
    margin: 0;
    color: #dc2626;
    font-size: 12px;
    font-weight: 850;
}

.mc-auth-card .mc-form-grid {
    gap: 14px;
}

.mc-auth-card .mc-form-field-full {
    grid-column: 1 / -1;
}

.mc-auth-card .mc-textarea {
    min-height: 104px;
    border: 1px solid var(--auth-border);
    border-radius: 16px;
    padding: 13px;
    background: #ffffff;
    color: var(--auth-text);
    font-size: 14px;
    font-weight: 750;
    resize: vertical;
    outline: none;
}

@media (min-width: 981px) {
    .mc-auth-card {
        max-height: calc(100vh - 84px);
        overflow-y: auto;
    }
}

@media (max-width: 980px) {
    .mc-auth-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
        align-items: start;
    }

    .mc-auth-hero {
        text-align: center;
    }

    .mc-auth-club-brand,
    .mc-auth-hero-actions {
        justify-content: center;
    }

    .mc-auth-description {
        margin-left: auto;
        margin-right: auto;
    }

    .mc-auth-card {
        width: min(100%, 480px);
        margin: 0 auto;
    }
}

@media (max-width: 620px) {
    .mc-auth-wrapper {
        width: min(100% - 28px, 1180px);
        padding: 24px 0;
    }

    .mc-auth-card {
        padding: 24px;
        border-radius: 26px;
    }

    .mc-auth-title {
        font-size: 42px;
    }

    .mc-auth-description {
        font-size: 16px;
    }

    .mc-auth-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .mc-auth-hero-actions {
        flex-direction: column;
    }

    .mc-auth-hero-actions .mc-auth-btn {
        width: 100%;
    }
}
