/* ------------------------------------------------------------------
   Mini-shop auth pages — appearance only.
   Shared by login / reset-password / replace-lost-password / signup
   (the others @import this file). Everything is scoped under `.sm-auth`
   so the header, banner and footer are never affected. No button colors
   are set here — existing btn-* classes (and the banner-tinted
   .store-cta-outline) keep their colors; we only refine shape, spacing,
   inputs and typography. The focus accent follows the theme's
   --bs-primary so it matches whatever primary color is configured.
   ------------------------------------------------------------------ */

.sm-auth {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 1.75rem 1rem 3rem;
}

.sm-auth__card {
    width: 100%;
    max-width: 430px;
    background: #fff;
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: 20px;
    box-shadow: 0 18px 50px -12px rgba(15, 23, 42, .18);
    padding: 2.25rem 2rem;
}

.sm-auth__card--wide {
    max-width: 660px;
}

.sm-auth__brand {
    text-align: center;
    margin-bottom: 1rem;
}

.sm-auth__logo {
    width: 62px;
    height: auto;
}

.sm-auth__title {
    text-align: center;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -.01em;
    margin: 0 0 .35rem;
    color: #0f172a;
}

.sm-auth__subtitle {
    text-align: center;
    color: #64748b;
    font-size: .95rem;
    margin: 0 0 1.75rem;
}

/* Labels + inputs ------------------------------------------------- */
.sm-auth .form-label {
    font-size: .82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: .35rem;
}

.sm-auth .form-control {
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: .7rem .9rem;
    font-size: .95rem;
    background: #f8fafc;
    color: #0f172a;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.sm-auth .form-control:focus {
    background: #fff;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 13, 110, 253), .16);
}

.sm-auth .form-control::placeholder {
    color: #94a3b8;
}

/* Icon-leading input group (login / forgot password) -------------- */
.sm-auth .input-group {
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.sm-auth .input-group:focus-within {
    background: #fff;
    border-color: var(--bs-primary, #0d6efd);
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb, 13, 110, 253), .16);
}

.sm-auth .input-group .input-group-text {
    background: transparent;
    border: 0;
    color: #94a3b8;
    padding-left: .95rem;
    padding-right: .35rem;
}

.sm-auth .input-group .form-control {
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    padding-left: .4rem;
}

/* Buttons — shape & motion only (colors come from existing classes) */
.sm-auth .btn {
    border-radius: 12px;
    padding: .72rem 1rem;
    font-weight: 600;
    letter-spacing: .01em;
    transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}

.sm-auth .btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .35);
}

.sm-auth .btn:active:not(:disabled) {
    transform: translateY(0);
    box-shadow: none;
}

.sm-auth .btn:disabled {
    opacity: .65;
}

/* Links ----------------------------------------------------------- */
.sm-auth__link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
}

.sm-auth__link:hover {
    color: var(--bs-primary, #0d6efd);
    text-decoration: underline;
}

/* Fine print / password-rule list --------------------------------- */
.sm-auth__fineprint {
    font-size: .78rem;
    color: #94a3b8;
}

.sm-auth__fineprint a {
    color: #64748b;
    text-decoration: none;
}

.sm-auth__fineprint a:hover {
    text-decoration: underline;
}

.sm-auth__rules {
    font-size: .8rem;
    color: #64748b;
    padding-left: 1.1rem;
    margin-bottom: 1rem;
}

/* Sign-up section (bottom of the login card) ---------------------- */
.sm-auth__divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: .78rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin: 1.5rem 0 1rem;
    gap: .75rem;
}

.sm-auth__divider::before,
.sm-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.sm-auth__signup-text {
    text-align: center;
    color: #64748b;
    font-size: .9rem;
    margin-bottom: .6rem;
}

/* Softer, rounder alerts ------------------------------------------ */
.sm-auth .alert {
    border-radius: 12px;
    font-size: .92rem;
}

@media (max-width: 480px) {
    .sm-auth {
        padding: 1.25rem .85rem 2.5rem;
    }

    .sm-auth__card {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
}
