.auth-container {
    max-width: none;
    min-height: 100vh;
    padding: 32px;
}

body {
    align-items: stretch;
    background:
        radial-gradient(circle at 12% 18%, rgba(8, 199, 168, 0.16), transparent 28%),
        radial-gradient(circle at 88% 12%, rgba(21, 92, 255, 0.14), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #eef5ff 52%, #f8fafc 100%);
    color: #1f2937;
}

.shopido-auth-shell {
    width: min(1120px, 100%);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(360px, 460px) 1fr;
    align-items: center;
    gap: 28px;
}

.shopido-auth-shell--compact {
    grid-template-columns: minmax(320px, 520px);
    justify-content: center;
}

.shopido-auth-shell--register {
    grid-template-columns: minmax(420px, 520px) 1fr;
    width: min(1180px, 100%);
}

.shopido-auth-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 22px 60px rgba(6, 24, 95, 0.12);
    padding: 34px;
}

.shopido-auth-card--register {
    padding: 30px 34px;
}

.shopido-auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    color: #06185f;
    font-size: 21px;
    font-weight: 800;
    text-decoration: none;
}

.shopido-auth-logo img {
    width: 42px;
    height: 42px;
    border-radius: 8px;
    object-fit: cover;
}

.shopido-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    padding: 7px 11px;
    border-radius: 999px;
    background: #ecfdf8;
    color: #087f6b;
    font-size: 13px;
    font-weight: 800;
}

.shopido-auth-kicker::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #08c7a8;
}

.shopido-auth-title {
    margin: 0;
    color: #06185f;
    font-size: 34px;
    font-weight: 850;
    line-height: 1.05;
    letter-spacing: 0;
}

.shopido-auth-copy {
    margin: 12px 0 28px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.6;
}

.shopido-auth-form .form-group {
    margin-bottom: 18px;
}

.shopido-auth-section {
    align-items: center;
    border-top: 1px solid #e5e7eb;
    display: flex;
    gap: 10px;
    margin: 24px 0 16px;
    padding-top: 20px;
}

.shopido-auth-section:first-of-type {
    border-top: 0;
    margin-top: 0;
    padding-top: 0;
}

.shopido-auth-section-step {
    align-items: center;
    background: #ecfdf8;
    border-radius: 999px;
    color: #087f6b;
    display: inline-grid;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 900;
    height: 26px;
    place-items: center;
    width: 26px;
}

.shopido-auth-section h2 {
    color: #06185f;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.shopido-auth-help {
    color: #64748b;
    display: block;
    font-size: 13px;
    margin-top: 7px;
}

.shop-route-preview {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #64748b;
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 750;
    gap: 6px;
    margin-top: 8px;
    padding: 9px 11px;
}

.shop-route-preview strong {
    color: #155cff;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    font-weight: 900;
    overflow-wrap: anywhere;
}

.shopido-auth-form .form-label {
    color: #1f2937;
    font-size: 14px;
    font-weight: 800;
}

.shopido-auth-form .form-control {
    min-height: 48px;
    border-color: #dbe3ef;
    border-radius: 8px;
    background: #ffffff;
    color: #0f172a;
}

.shopido-auth-form .form-control::placeholder {
    color: #9aa8bc;
}

.shopido-auth-form .form-control:focus {
    border-color: #155cff;
    box-shadow: 0 0 0 4px rgba(21, 92, 255, 0.12);
}

.shopido-auth-form .password-toggle {
    color: #155cff;
}

.shopido-auth-form .password-toggle:hover,
.shopido-auth-form .password-toggle:focus {
    color: #06185f;
}

.shopido-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.shopido-auth-link {
    color: #155cff;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.shopido-auth-link:hover,
.shopido-auth-link:focus {
    color: #06185f;
    text-decoration: underline;
}

.shopido-auth-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 22px;
    color: #475569;
    font-size: 14px;
}

.shopido-auth-check .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    border-color: #b9c5d6;
}

.shopido-auth-check .form-check-input:checked {
    background-color: #08c7a8;
    border-color: #08c7a8;
}

.shopido-auth-terms {
    align-items: flex-start;
    line-height: 1.45;
}

.shopido-auth-terms .form-check-input {
    margin-top: 2px;
}

.shopido-auth-primary,
.shopido-auth-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 850;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.shopido-auth-primary {
    border: 0;
    background: linear-gradient(135deg, #155cff 0%, #0d36d8 100%);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(21, 92, 255, 0.2);
}

.shopido-auth-primary:hover,
.shopido-auth-primary:focus {
    transform: translateY(-1px);
    background: linear-gradient(135deg, #0d4ce4 0%, #06185f 100%);
    color: #ffffff;
    box-shadow: 0 18px 38px rgba(21, 92, 255, 0.26);
}

.shopido-auth-secondary {
    border: 1px solid #dbe3ef;
    background: #ffffff;
    color: #06185f;
}

.shopido-auth-secondary:hover,
.shopido-auth-secondary:focus {
    border-color: #b9c5d6;
    background: #f8fafc;
    color: #155cff;
}

.shopido-auth-social {
    display: grid;
    gap: 12px;
    margin: 18px 0;
}

.shopido-auth-google {
    gap: 10px;
}

.shopido-auth-google-mark {
    display: block;
    flex: 0 0 20px;
    height: 20px;
    object-fit: contain;
    width: 20px;
}

.shopido-auth-divider {
    align-items: center;
    color: #94a3b8;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 12px;
    grid-template-columns: 1fr auto 1fr;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.shopido-auth-divider::before,
.shopido-auth-divider::after {
    background: #e5eaf4;
    content: "";
    height: 1px;
}

.shopido-auth-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.shopido-auth-footer p {
    margin: 0 0 12px;
}

.shopido-auth-visual {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(145deg, rgba(6, 24, 95, 0.96), rgba(13, 54, 216, 0.86)),
        #06185f;
    box-shadow: 0 24px 70px rgba(6, 24, 95, 0.18);
}

.shopido-auth-visual img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 58% center;
}

.shopido-auth-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(6, 24, 95, 0.74) 0%, rgba(6, 24, 95, 0.18) 45%, rgba(6, 24, 95, 0.04) 100%);
}

.shopido-auth-visual-content {
    position: absolute;
    left: 34px;
    right: 34px;
    bottom: 34px;
    z-index: 1;
    color: #ffffff;
}

.shopido-auth-visual-content h2 {
    max-width: 430px;
    margin: 0 0 12px;
    font-size: 34px;
    font-weight: 850;
    line-height: 1.08;
    letter-spacing: 0;
}

.shopido-auth-visual-content p {
    max-width: 420px;
    margin: 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.6;
}

.shopido-auth-state {
    text-align: center;
}

.shopido-auth-state-icon {
    width: 74px;
    height: 74px;
    margin: 0 auto 22px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: #ecfdf8;
    box-shadow: inset 0 0 0 1px rgba(8, 199, 168, 0.2);
}

.shopido-auth-state-icon img {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    object-fit: cover;
}

.shopido-auth-state-actions {
    display: grid;
    gap: 12px;
    margin-top: 28px;
}

.shopido-auth-success {
    margin: 22px 0 4px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #ecfdf8;
    color: #087f6b;
    font-size: 14px;
    font-weight: 850;
}

.shopido-auth-note {
    margin: 18px 0 0;
    color: #64748b;
    font-size: 13px;
}

.shopido-auth-card .alert {
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 14px;
}

@media (max-width: 991px) {
    .auth-container {
        padding: 24px;
    }

    .shopido-auth-shell {
        min-height: calc(100vh - 48px);
        grid-template-columns: minmax(0, 500px);
        justify-content: center;
    }

    .shopido-auth-shell--register {
        grid-template-columns: minmax(0, 560px);
    }

    .shopido-auth-visual {
        display: none;
    }
}

@media (max-width: 575px) {
    .auth-container {
        padding: 14px;
    }

    .shopido-auth-shell {
        min-height: calc(100vh - 28px);
    }

    .shopido-auth-card {
        padding: 24px 20px;
        box-shadow: 0 14px 38px rgba(6, 24, 95, 0.1);
    }

    .shopido-auth-card--register {
        padding: 24px 20px;
    }

    .shopido-auth-title {
        font-size: 28px;
    }

    .shopido-auth-label-row {
        display: block;
    }

    .shopido-auth-label-row .shopido-auth-link {
        display: inline-block;
        margin: 8px 0 0;
    }
}

/* Account and security surfaces */
.settings-shell {
    width: min(1080px, 100%);
    margin: 0 auto;
    display: grid;
    gap: 18px;
    align-content: start;
}

.settings-shell--narrow {
    width: min(980px, 100%);
}

.settings-shell--state {
    width: min(560px, 100%);
    min-height: calc(100vh - 64px);
    align-content: center;
}

.settings-page-header,
.settings-card,
.settings-status-card,
.token-reveal-panel {
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #e5eaf4;
    border-radius: 8px;
    box-shadow: 0 18px 48px rgba(6, 24, 95, 0.09);
}

.settings-page-header {
    display: flex;
    gap: 20px;
    justify-content: space-between;
    padding: 24px;
}

.settings-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    color: #64748b;
    font-size: 13px;
    font-weight: 800;
}

.settings-breadcrumb a {
    color: #155cff;
    text-decoration: none;
}

.settings-page-header h1 {
    margin: 0;
    color: #06185f;
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: 0;
}

.settings-page-header p {
    margin: 10px 0 0;
    color: #64748b;
    line-height: 1.55;
}

.settings-secondary-action,
.settings-primary-button,
.settings-secondary-button,
.settings-copy-button,
.settings-danger-button {
    align-items: center;
    border-radius: 8px;
    display: inline-flex;
    font-weight: 850;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    text-decoration: none;
    white-space: nowrap;
}

.settings-secondary-action,
.settings-secondary-button {
    background: #ffffff;
    border: 1px solid #dbe3ef;
    color: #06185f;
}

.settings-secondary-action:hover,
.settings-secondary-button:hover {
    background: #f8fafc;
    border-color: #b9c5d6;
    color: #155cff;
}

.settings-primary-button {
    border: 0;
    background: linear-gradient(135deg, #155cff, #0d36d8);
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(21, 92, 255, 0.2);
}

.settings-primary-button:hover {
    background: linear-gradient(135deg, #0d4ce4, #06185f);
    color: #ffffff;
}

.settings-danger-button {
    border: 1px solid #fecaca;
    background: #fee2e2;
    color: #b91c1c;
}

.settings-danger-button:hover {
    background: #fecaca;
    color: #991b1b;
}

.settings-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.45fr);
}

.settings-security-grid {
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(0, 620px) minmax(280px, 1fr);
}

.settings-side-stack,
.settings-action-list {
    display: grid;
    gap: 14px;
}

.settings-card {
    padding: 22px;
}

.settings-section-heading {
    margin-bottom: 18px;
}

.settings-section-heading--row {
    align-items: center;
    display: flex;
    justify-content: space-between;
}

.settings-kicker {
    color: #155cff;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.settings-section-heading h2,
.settings-state-card h1,
.token-reveal-panel h2 {
    color: #06185f;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0;
    margin: 0;
}

.settings-section-heading p,
.settings-state-card p,
.token-reveal-panel p {
    color: #64748b;
    line-height: 1.55;
    margin: 7px 0 0;
}

.settings-field {
    margin-bottom: 18px;
}

.settings-field .form-label {
    color: #0f172a;
    font-weight: 850;
}

.settings-field .form-control,
.settings-form .form-control,
.settings-field textarea,
.settings-field input[type="file"] {
    border: 1px solid #dbe3ef;
    border-radius: 8px;
    color: #0f172a;
    min-height: 48px;
    width: 100%;
}

.settings-field textarea {
    min-height: 150px;
    resize: vertical;
}

.settings-field .form-control:focus,
.settings-field textarea:focus,
.settings-field input[type="file"]:focus,
.settings-form .form-control:focus {
    border-color: #155cff;
    box-shadow: 0 0 0 4px rgba(21, 92, 255, 0.12);
}

.settings-field small {
    color: #64748b;
    display: block;
    font-size: 13px;
    margin-top: 7px;
}

.settings-form-actions {
    border-top: 1px solid #e5eaf4;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
}

.settings-row,
.settings-action-row {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e5eaf4;
    border-radius: 8px;
    color: inherit;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    padding: 14px;
    text-decoration: none;
}

.settings-row strong,
.settings-action-row strong {
    color: #0f172a;
    display: block;
    font-size: 15px;
    font-weight: 900;
}

.settings-row small,
.settings-action-row small {
    color: #64748b;
    display: block;
    font-size: 13px;
    line-height: 1.45;
    margin-top: 3px;
}

.settings-row input[type="checkbox"] {
    flex: 0 0 auto;
}

.settings-action-row em {
    color: #155cff;
    flex: 0 0 auto;
    font-style: normal;
    font-weight: 900;
}

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

.settings-guidance-list li {
    background: #f8fbff;
    border: 1px solid #e5eaf4;
    border-radius: 8px;
    color: #0f172a;
    font-weight: 750;
    padding: 11px 12px;
}

.settings-state-card {
    text-align: center;
}

.settings-state-icon {
    align-items: center;
    background: #ecfdf8;
    border-radius: 18px;
    color: #087f6b;
    display: grid;
    font-size: 34px;
    font-weight: 900;
    height: 76px;
    margin: 0 auto 20px;
    place-items: center;
    width: 76px;
}

.settings-state-card h1 {
    font-size: 34px;
}

.settings-state-actions {
    display: grid;
    gap: 12px;
    margin-top: 26px;
}

.settings-messages--inline {
    margin-bottom: 18px;
}

.settings-status-card,
.token-reveal-panel {
    align-items: center;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    padding: 18px 20px;
}

.settings-status-card strong {
    color: #06185f;
    display: block;
    font-size: 16px;
    font-weight: 900;
}

.settings-status-card p {
    color: #64748b;
    line-height: 1.45;
    margin: 5px 0 0;
}

.settings-status-card a {
    color: #155cff;
    font-weight: 900;
    text-decoration: none;
}

.settings-status-card--active {
    background: #ecfdf8;
    border-color: rgba(8, 199, 168, 0.24);
}

.settings-status-card--warning {
    background: #fff7ed;
    border-color: #fed7aa;
}

.settings-status-card--blocked {
    background: #fef2f2;
    border-color: #fecaca;
}

.token-reveal-panel {
    align-items: stretch;
    background:
        radial-gradient(circle at 88% 18%, rgba(8, 199, 168, 0.22), transparent 28%),
        linear-gradient(135deg, #06185f, #0d36d8);
    color: #ffffff;
    display: grid;
}

.token-reveal-panel .settings-kicker,
.token-reveal-panel h2,
.token-reveal-panel p {
    color: #ffffff;
}

.token-reveal-panel p {
    opacity: 0.86;
}

.token-copy-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.token-copy-row code,
.settings-code-example code {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    color: #ffffff;
    overflow-x: auto;
    padding: 12px;
    white-space: nowrap;
}

.settings-copy-button {
    border: 0;
    background: #08c7a8;
    color: #06185f;
}

.settings-code-example {
    display: grid;
    gap: 10px;
    grid-template-columns: 140px minmax(0, 1fr);
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-weight: 850;
}

.settings-definition-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.settings-definition-list div {
    border-bottom: 1px solid #e5eaf4;
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
}

.settings-definition-list div:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.settings-definition-list dt {
    color: #64748b;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.settings-definition-list dd {
    color: #0f172a;
    font-weight: 800;
    margin: 0;
    overflow-wrap: anywhere;
}

.api-key-list {
    display: grid;
    gap: 10px;
}

.api-key-row {
    align-items: center;
    background: #f8fbff;
    border: 1px solid #e5eaf4;
    border-radius: 8px;
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(180px, 1fr) minmax(130px, 0.38fr) minmax(130px, 0.38fr) 96px auto;
    padding: 14px;
}

.api-key-row--revoked {
    opacity: 0.64;
}

.api-key-main strong,
.api-key-main span,
.api-key-meta small,
.api-key-meta span {
    display: block;
}

.api-key-main strong {
    color: #0f172a;
    font-size: 15px;
    font-weight: 900;
}

.api-key-main span,
.api-key-meta small {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}

.api-key-meta small {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.api-key-meta span {
    color: #0f172a;
    font-size: 13px;
    font-weight: 800;
    margin-top: 4px;
}

.security-status-badge {
    border-radius: 999px;
    display: inline-flex;
    font-size: 13px;
    font-weight: 900;
    padding: 7px 10px;
}

.security-status-badge--active {
    background: #ecfdf8;
    color: #087f6b;
}

.security-status-badge--muted {
    background: #e5e7eb;
    color: #475569;
}

.api-key-actions {
    display: flex;
    justify-content: flex-end;
}

.settings-empty-state {
    background: #f8fbff;
    border: 1px dashed #dbe3ef;
    border-radius: 8px;
    color: #64748b;
    margin: 0;
    padding: 22px;
    text-align: center;
}

@media (max-width: 920px) {
    .settings-page-header,
    .settings-status-card {
        align-items: stretch;
        flex-direction: column;
    }

    .settings-grid,
    .settings-security-grid {
        grid-template-columns: 1fr;
    }

    .api-key-row {
        grid-template-columns: 1fr;
    }

    .api-key-actions,
    .api-key-actions form,
    .api-key-actions .settings-danger-button {
        justify-content: stretch;
        width: 100%;
    }
}

@media (max-width: 575px) {
    .settings-page-header,
    .settings-card,
    .settings-status-card,
    .token-reveal-panel {
        padding: 18px;
    }

    .settings-form-actions,
    .settings-state-actions,
    .token-copy-row,
    .settings-code-example {
        grid-template-columns: 1fr;
    }

    .settings-form-actions {
        display: grid;
    }

    .settings-primary-button,
    .settings-secondary-button,
    .settings-secondary-action,
    .settings-copy-button {
        width: 100%;
    }
}
