.shop-auth-shell {
    max-width: 520px;
    margin: 0 auto;
}

.shop-auth-form-wrap {
    background: var(--shop-surface, #fff);
    border: 1px solid var(--shop-line, #e5e7eb);
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
    padding: 1.4rem;
}

.shop-auth-form-wrap h2,
.shop-auth-form-wrap h1 {
    font-size: 1.55rem;
    line-height: 1.2;
    margin: 0 0 .35rem;
    color: var(--shop-secondary, #0f172a);
}

.shop-auth-meta,
.shop-auth-helper {
    color: var(--shop-muted, #6b7280);
    font-size: .95rem;
}

.shop-auth-alert {
    border-radius: 12px;
}

.shop-auth-input-group {
    margin-bottom: 1rem;
}

.shop-auth-input-group label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 600;
    color: var(--shop-secondary, #0f172a);
}

.shop-auth-input-group .form-control {
    border-radius: 12px;
    min-height: 46px;
    border-color: var(--shop-line, #e5e7eb);
}

.shop-auth-input-group .form-control:focus {
    border-color: var(--shop-brand, #1f7a54);
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--shop-brand, #1f7a54) 16%, transparent);
}

.shop-auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.shop-auth-actions .btn-block {
    display: block;
    width: 100%;
}

.shop-auth-link {
    color: var(--shop-link, #1f7a54);
    font-weight: 600;
    text-decoration: none;
}

.shop-auth-link:hover,
.shop-auth-link:focus {
    color: var(--shop-link-hover, var(--shop-brand-dark, #0f744f));
    text-decoration: underline;
}

.shop-auth-link-button {
    background: 0 0;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.shop-auth-shell .invalid-feedback {
    display: block;
    font-size: .85rem;
}

.shop-auth-shell .form-check-label {
    color: var(--shop-secondary, #0f172a);
}

.shop-auth-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
}

.shop-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin: 0;
}

.shop-auth-remember .form-check-input {
    margin: 0;
}

.btn-shop-primary {
    background: var(--shop-brand, #1f7a54);
    border-color: var(--shop-brand, #1f7a54);
    color: #fff;
    font-weight: 700;
    border-radius: 12px;
}

.btn-shop-primary:hover,
.btn-shop-primary:focus {
    background: var(--shop-brand-dark, #0f744f);
    border-color: var(--shop-brand-dark, #0f744f);
    color: #fff;
}

.btn-shop-light {
    background: var(--shop-surface, #fff);
    border: 1px solid var(--shop-line, #e5e7eb);
    color: var(--shop-secondary, #0f172a);
    border-radius: 12px;
}

.btn-shop-light:hover,
.btn-shop-light:focus {
    background: #f8fafc;
    color: var(--shop-secondary, #0f172a);
}

.btn-shop-secondary {
    background: var(--shop-secondary, #0f172a);
    border-color: var(--shop-secondary, #0f172a);
    color: #fff;
    border-radius: 12px;
}

.btn-shop-secondary:hover,
.btn-shop-secondary:focus {
    background: var(--shop-secondary-dark, #111827);
    border-color: var(--shop-secondary-dark, #111827);
    color: #fff;
}

.shop-auth-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    max-width: 520px;
    margin: 0 auto 0.9rem;
    padding: 0 0.15rem;
}

.shop-auth-page-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    color: var(--shop-secondary, #0f172a);
    text-decoration: none;
}

.shop-auth-page-brand:hover,
.shop-auth-page-brand:focus {
    text-decoration: none;
    color: var(--shop-secondary, #0f172a);
}

.shop-auth-page-mark {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    background: linear-gradient(135deg, var(--shop-accent, #f6d64a) 0%, color-mix(in srgb, var(--shop-accent, #f6d64a) 78%, white) 100%);
    color: var(--shop-secondary, #0f172a);
    font-weight: 800;
}

.shop-auth-page-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.1;
}

.shop-auth-page-brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
}

.shop-auth-page-brand-copy span {
    font-size: 0.76rem;
    color: var(--shop-muted, #6b7280);
}

.shop-auth-page-link {
    color: var(--shop-link, #1f7a54);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.shop-auth-page-link:hover,
.shop-auth-page-link:focus {
    color: var(--shop-link-hover, #0f744f);
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .shop-auth-page-header {
        margin-bottom: 0.7rem;
        padding: 0;
    }

    .shop-auth-page-brand-copy strong {
        font-size: 0.95rem;
    }

    .shop-auth-page-link {
        font-size: 0.88rem;
    }
}
