.auth-page {
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(0, 209, 178, 0.16), transparent 28%),
        radial-gradient(circle at bottom left, rgba(17, 24, 39, 0.08), transparent 30%),
        linear-gradient(180deg, #eef4f7 0%, #f8fafc 48%, #f2fbf8 100%);
}

.auth-main {
    position: relative;
}

.auth-section {
    position: relative;
    overflow: hidden;
}

.auth-section::before,
.auth-section::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.auth-section::before {
    top: 4rem;
    right: -8rem;
    width: 22rem;
    height: 22rem;
    background: rgba(0, 209, 178, 0.08);
}

.auth-section::after {
    bottom: 1rem;
    left: -7rem;
    width: 18rem;
    height: 18rem;
    background: rgba(17, 24, 39, 0.06);
}

.auth-shell {
    position: relative;
    z-index: 1;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 2rem;
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
}

.auth-showcase-column {
    display: block;
}

.auth-showcase {
    position: relative;
    height: 100%;
    padding: clamp(1.75rem, 4vw, 3rem);
    border-radius: 1.75rem;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(150deg, rgba(17, 24, 39, 0.97), rgba(31, 41, 55, 0.92)),
        radial-gradient(circle at top left, rgba(0, 209, 178, 0.2), transparent 42%);
}

.auth-showcase::before,
.auth-showcase::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.auth-showcase::before {
    top: -4rem;
    right: -4rem;
    width: 12rem;
    height: 12rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.auth-showcase::after {
    bottom: -5rem;
    left: -2rem;
    width: 16rem;
    height: 16rem;
    background: rgba(255, 255, 255, 0.05);
}

.auth-showcase > * {
    position: relative;
    z-index: 1;
}

.auth-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.auth-brand img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.18);
}

.auth-brand span {
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.76);
}

.auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.auth-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.35rem);
    font-weight: 800;
    line-height: 1.05;
}

.auth-copy {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.8;
    max-width: 36rem;
}

.auth-point-list,
.auth-meta-grid,
.auth-support-grid {
    display: grid;
    gap: 1rem;
}

.auth-point-list {
    margin-top: 2rem;
}

.auth-point,
.auth-meta-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.1rem;
    background: rgba(255, 255, 255, 0.08);
}

.auth-point-title {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    font-weight: 700;
}

.auth-point-copy,
.auth-meta-card span {
    display: block;
    margin: 0;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.92rem;
    line-height: 1.65;
}

.auth-meta-grid {
    margin-top: 2rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.auth-meta-card strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 1.02rem;
    font-weight: 700;
}

.auth-panel {
    height: 100%;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.75rem;
    background: #ffffff;
    box-shadow: 0 26px 60px rgba(15, 23, 42, 0.08);
    max-width: 760px;
    margin: 0 auto;
}

.auth-panel-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.auth-panel-header h1,
.auth-panel-header h2,
.auth-panel-title {
    margin: 0;
    font-size: clamp(1.85rem, 3vw, 2.45rem);
    font-weight: 800;
    color: var(--text);
}

.auth-panel-copy {
    margin: 0.75rem 0 0;
    color: var(--muted);
    max-width: 40rem;
    line-height: 1.75;
}

.auth-panel-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    background: rgba(0, 209, 178, 0.12);
    color: #0f766e;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

.auth-page .alert {
    margin-bottom: 1.25rem;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
}

.auth-page .alert-danger {
    color: #991b1b;
    background: rgba(254, 226, 226, 0.92);
}

.auth-page .alert-success {
    color: #166534;
    background: rgba(220, 252, 231, 0.92);
}

.auth-form-grid {
    display: grid;
    gap: 1rem;
}

.auth-panel-wide {
    max-width: 860px;
}

.auth-form-grid.auth-form-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-form-grid-span-2 {
    grid-column: 1 / -1;
}

.auth-page .form-label {
    margin-bottom: 0.55rem;
    font-weight: 600;
    color: var(--brand);
}

.auth-page .form-control,
.auth-page .form-select,
.auth-page textarea.form-control {
    min-height: 3.25rem;
    border-radius: 1rem;
    border: 1px solid rgba(15, 23, 42, 0.1);
    background: #f8fafc;
    box-shadow: none;
}

.auth-page textarea.form-control {
    min-height: 7.2rem;
    resize: vertical;
}

.auth-page .form-control:focus,
.auth-page .form-select:focus,
.auth-page textarea.form-control:focus {
    border-color: rgba(0, 209, 178, 0.72);
    background: #ffffff;
    box-shadow: 0 0 0 0.25rem rgba(0, 209, 178, 0.12);
}

.auth-field-hint,
#password-match-status {
    margin-top: 0.5rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.password-match {
    color: #15803d;
    font-weight: 600;
}

.password-mismatch {
    color: #b91c1c;
    font-weight: 600;
}

.auth-inline-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-inline-row .form-label {
    margin-bottom: 0;
}

.auth-link,
.auth-form-footer,
.auth-form-footer a {
    color: var(--brand);
}

.auth-link {
    font-weight: 600;
}

.auth-page .form-check {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: #f8fafc;
}

.auth-page .form-check-input {
    margin-top: 0.3rem;
}

.auth-page .form-check-label {
    color: var(--muted);
    line-height: 1.7;
}

.auth-page .btn {
    border-radius: 999px;
    font-weight: 700;
    padding: 0.9rem 1.25rem;
}

.auth-page .btn-accent {
    color: #042f2e;
    box-shadow: 0 16px 30px rgba(0, 209, 178, 0.18);
}

.auth-page .btn-outline-dark {
    border-color: rgba(15, 23, 42, 0.18);
    color: var(--brand);
}

.auth-page .btn-outline-dark:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--brand);
}

.auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.auth-actions .btn {
    flex: 1 1 220px;
}

.auth-stepper {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.5rem;
}

.auth-step {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: #f8fafc;
}

.auth-step.is-current {
    border-color: rgba(0, 209, 178, 0.4);
    background: rgba(0, 209, 178, 0.08);
}

.auth-step.is-complete {
    border-color: rgba(22, 163, 74, 0.18);
    background: rgba(220, 252, 231, 0.7);
}

.auth-step-index {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
}

.auth-step.is-upcoming .auth-step-index {
    background: rgba(15, 23, 42, 0.12);
    color: var(--brand);
}

.auth-step-label {
    color: var(--brand);
    font-size: 0.95rem;
    font-weight: 700;
}

.auth-sync-card,
.auth-summary-card,
.auth-status-card {
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.15rem;
    background: #f8fafc;
}

.auth-status-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.auth-status-card strong {
    color: var(--brand);
}

.auth-status-card span {
    color: var(--muted);
    font-size: 0.92rem;
    word-break: break-word;
}

.auth-status-card.is-pending {
    border-color: rgba(59, 130, 246, 0.18);
    background: rgba(239, 246, 255, 0.92);
}

.auth-status-card.is-failed {
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(254, 242, 242, 0.92);
}

.auth-inline-input {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
}

.auth-inline-input .form-control {
    flex: 1 1 auto;
}

.auth-inline-button {
    flex: 0 0 auto;
    min-width: 7rem;
}

.auth-sync-status {
    margin-top: 0.25rem;
}

.auth-image-preview {
    min-height: 13rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    border: 1px dashed rgba(15, 23, 42, 0.12);
    border-radius: 1.15rem;
    background: #f8fafc;
}

.auth-image-preview img {
    max-width: 100%;
    max-height: 16rem;
    border-radius: 1rem;
    object-fit: cover;
}

.auth-image-placeholder {
    color: var(--muted);
    text-align: center;
    line-height: 1.7;
}

.package-grid,
.payment-method-grid {
    display: grid;
    gap: 1rem;
}

.package-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.payment-method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.package-option,
.payment-method-card {
    cursor: pointer;
}

.package-option input,
.payment-method-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.package-option-body,
.payment-method-body {
    display: block;
    height: 100%;
    padding: 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.15rem;
    background: #ffffff;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.package-option input:checked + .package-option-body,
.payment-method-card input:checked + .payment-method-body {
    border-color: rgba(0, 209, 178, 0.48);
    box-shadow: 0 18px 35px rgba(0, 209, 178, 0.12);
    transform: translateY(-2px);
}

.package-option-header {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
    margin-bottom: 0.8rem;
}

.package-option-name,
.payment-method-name {
    display: block;
    color: var(--brand);
    font-size: 1.05rem;
    font-weight: 700;
}

.payment-method-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 0.95rem;
}

.gateway-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3.25rem;
    height: 2.4rem;
    padding: 0 0.8rem;
    border-radius: 999px;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.gateway-icon-airtel {
    background: linear-gradient(135deg, #d71920, #f97316);
}

.gateway-icon-mtn {
    background: linear-gradient(135deg, #facc15, #f59e0b);
    color: #1f2937;
}

.gateway-icon-zamtel {
    background: linear-gradient(135deg, #15803d, #22c55e);
}

.gateway-icon-cash {
    background: linear-gradient(135deg, #0f172a, #334155);
}

.gateway-icon-default {
    background: linear-gradient(135deg, #0f766e, #14b8a6);
}

.payment-method-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.package-option-price {
    color: #0f766e;
    font-size: 1rem;
    font-weight: 700;
}

.package-option-copy,
.payment-method-copy {
    display: block;
    color: var(--muted);
    line-height: 1.7;
}

.package-option-list {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
}

.package-option-list span,
.package-summary-list span {
    display: block;
    padding-left: 1rem;
    position: relative;
    color: var(--brand);
    font-size: 0.94rem;
}

.package-option-list span::before,
.package-summary-list span::before {
    content: "";
    position: absolute;
    top: 0.55rem;
    left: 0;
    width: 0.42rem;
    height: 0.42rem;
    border-radius: 999px;
    background: var(--accent);
}

.package-summary-list {
    display: grid;
    gap: 0.55rem;
    margin: 1rem 0 1.5rem;
}

.auth-support-grid {
    margin-top: 1.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.auth-support-card {
    padding: 1.1rem 1.15rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1.1rem;
    background: #f8fafc;
}

.auth-support-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--brand);
}

.auth-support-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.auth-form-footer {
    margin-top: 1.4rem;
    text-align: center;
    color: var(--muted);
    line-height: 1.8;
}

.auth-form-footer a {
    font-weight: 600;
}

.auth-help-list {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.auth-help-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.auth-help-item .badge-soft {
    min-width: 3rem;
    text-align: center;
}

.auth-help-item p {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.65;
}

.auth-note-card {
    margin-top: 1.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: rgba(0, 209, 178, 0.06);
    color: var(--muted);
}

.auth-note-card strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--brand);
}

.auth-subtle-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem 1.25rem;
    margin-top: 1.25rem;
}

.auth-subtle-links a {
    color: var(--brand);
    font-weight: 600;
}

@media (max-width: 991px) {
    .auth-showcase-column {
        display: none;
    }

    .auth-shell {
        padding: 0.75rem;
        border-radius: 1.5rem;
    }

    .auth-form-grid.auth-form-grid-2,
    .auth-support-grid,
    .auth-meta-grid,
    .auth-stepper,
    .package-grid,
    .payment-method-grid {
        grid-template-columns: 1fr;
    }

    .auth-showcase,
    .auth-panel {
        border-radius: 1.35rem;
    }
}

@media (max-width: 767px) {
    .auth-section {
        padding-top: 0.5rem;
    }

    .auth-showcase,
    .auth-panel {
        padding: 1.4rem;
    }

    .auth-panel-header {
        flex-direction: column;
    }

    .auth-inline-input,
    .auth-status-card {
        flex-direction: column;
        align-items: stretch;
    }

    .auth-title {
        font-size: clamp(1.85rem, 9vw, 2.6rem);
    }

    .auth-actions .btn {
        flex-basis: 100%;
    }

    .auth-shell {
        padding: 0;
        border: none;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    .auth-panel {
        max-width: none;
        margin: 0;
    }
}
