@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&family=Outfit:wght@400;500;600;700;800&display=swap');

/* Printed workshop job-card logins — paper ticket, not dark admin chrome */
.spjc-auth {
    --auth-accent: #1565c0;
    --auth-accent-2: #0d47a1;
    --auth-ink: #13253a;
    --auth-paper: #fffaf3;
    --auth-kraft: #cbb892;
    font-family: Outfit, system-ui, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    justify-content: center;
    padding: 28px 16px;
    position: relative;
    background:
        repeating-linear-gradient(90deg, rgba(90,62,32,.05) 0 1px, transparent 1px 28px),
        repeating-linear-gradient(0deg, rgba(90,62,32,.04) 0 1px, transparent 1px 28px),
        radial-gradient(circle at 12% 10%, #e8d7b4, transparent 42%),
        linear-gradient(160deg, #d7c39a 0%, #c4ae7d 50%, #b79a68 100%);
}
.spjc-mgr-body.spjc-portal-has-footer .spjc-auth,
.spjc-tech-body.spjc-portal-has-footer .spjc-auth {
    min-height: 0;
    flex: 1;
}
.spjc-auth.is-owner { --auth-accent: #1565c0; --auth-accent-2: #0d47a1; }
.spjc-auth.is-manager { --auth-accent: #1565c0; --auth-accent-2: #0d47a1; }
.spjc-auth.is-staff { --auth-accent: #1565c0; --auth-accent-2: #0d47a1; }
.spjc-auth.is-support { --auth-accent: #1565c0; --auth-accent-2: #0d47a1; }
.spjc-auth.is-customer { --auth-accent: #1565c0; --auth-accent-2: #0d47a1; }
.spjc-auth.is-wordpress { --auth-accent: #1565c0; --auth-accent-2: #0d47a1; }

.spjc-auth-hero {
    position: relative;
    width: 250px;
    flex-shrink: 0;
    color: #fff8ef;
    display: flex;
    align-items: center;
    padding: 28px 22px;
    background:
        radial-gradient(circle at 20% 0, rgba(255,255,255,.16), transparent 46%),
        linear-gradient(180deg, var(--auth-accent-2), var(--auth-accent));
    border-radius: 18px 0 0 18px;
    box-shadow: inset -10px 0 0 rgba(0,0,0,.08);
}
.spjc-auth-hero-bg { display: none; }
.spjc-auth-hero::before,
.spjc-auth-hero::after {
    content: '';
    position: absolute;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #c4ae7d;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.2);
    z-index: 2;
}
.spjc-auth-hero::before { top: 22px; }
.spjc-auth-hero::after { bottom: 22px; }
.spjc-auth-hero-inner {
    position: relative;
    z-index: 1;
    width: 100%;
}
.spjc-auth-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 22px;
}
.spjc-auth-brand img {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    padding: 6px;
    box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.spjc-auth-brand strong {
    display: block;
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    font-family: Fraunces, Georgia, serif;
}
.spjc-auth-brand small {
    display: inline-block;
    margin-top: 4px;
    color: #ffe4c7;
    font-size: 10px;
    letter-spacing: .16em;
    text-transform: uppercase;
    font-weight: 800;
    border: 1px solid rgba(255,255,255,.35);
    padding: 3px 8px;
    border-radius: 999px;
}
.spjc-auth-eyebrow {
    margin: 0 0 8px;
    color: #ffe8c4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.spjc-auth-hero h1 {
    margin: 0 0 10px;
    font-family: Fraunces, Georgia, serif;
    font-size: 26px;
    line-height: 1.15;
    color: #fff;
    font-weight: 700;
}
.spjc-auth-lead {
    margin: 0 0 18px;
    color: rgba(255,248,239,.86);
    font-size: 13px;
    line-height: 1.5;
}
.spjc-auth-ticket {
    display: block;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: #fffaf3;
    color: #2c1810;
    border-radius: 4px 10px 10px 4px;
    border-left: 6px solid #fff;
    box-shadow: 0 8px 18px rgba(0,0,0,.18);
}
.spjc-auth-ticket header {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #1565c0;
}
.spjc-auth-ticket header em {
    font-style: normal;
    color: #2c1810;
    letter-spacing: .04em;
}
.spjc-auth-ticket-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 4px;
}
.spjc-auth-ticket-row span { color: #7a6550; }
.spjc-auth-ticket-row strong.is-live { color: #15803d; }
.spjc-auth-ticket-progress {
    margin-top: 8px;
    height: 6px;
    border-radius: 99px;
    background: #ead9bc;
    overflow: hidden;
}
.spjc-auth-ticket-progress i {
    display: block;
    width: 62%;
    height: 100%;
    background: var(--auth-accent);
}
.spjc-auth-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.spjc-auth-points li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #fff8ef;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}
.spjc-auth-points li span {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    flex-shrink: 0;
}

.spjc-auth-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    width: min(440px, 100%);
    padding: 28px 30px;
    background:
        repeating-linear-gradient(transparent 0 31px, rgba(21,101,192,.08) 32px),
        var(--auth-paper);
    border-radius: 0 18px 18px 0;
    border: 1px solid #ead9bc;
    border-left: 2px dashed #c4ae7d;
    box-shadow: 18px 22px 40px rgba(80, 50, 16, .28);
    position: relative;
}
.spjc-auth-card {
    width: 100%;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 8px 8px 4px 0;
}
.spjc-auth-card-head { margin-bottom: 18px; padding-right: 0; }
.spjc-auth-pill {
    display: inline-flex;
    padding: 4px 10px;
    border-radius: 4px;
    background: var(--auth-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.spjc-auth-card-head h2 {
    margin: 10px 0 6px;
    font-family: Fraunces, Georgia, serif;
    font-size: 28px;
    color: var(--auth-ink);
}
.spjc-auth-card-head p {
    margin: 0;
    color: #7a6550;
    font-size: 14px;
    line-height: 1.5;
}

.spjc-auth .spjc-mgr-field,
.spjc-auth .spjc-tech-field,
.spjc-auth .spjc-track-field,
.spjc-auth .spjc-form-group {
    margin-bottom: 14px;
}
.spjc-auth .spjc-mgr-field label,
.spjc-auth .spjc-tech-field label,
.spjc-auth .spjc-track-field label,
.spjc-auth .spjc-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 11px;
    font-weight: 800;
    color: #6b5340;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.spjc-auth input[type="text"],
.spjc-auth input[type="password"],
.spjc-auth input[type="tel"],
.spjc-auth .spjc-track-input {
    width: 100%;
    box-sizing: border-box;
    padding: 12px 12px 10px;
    border: 0;
    border-bottom: 2px solid #d7c4a6;
    border-radius: 0;
    background: transparent;
    color: var(--auth-ink);
    font-size: 16px;
    font-family: inherit;
}
.spjc-auth input:focus,
.spjc-auth .spjc-track-input:focus {
    outline: none;
    border-bottom-color: var(--auth-accent);
    background: rgba(15, 118, 110, .06);
}
.spjc-auth .spjc-mgr-login-error,
.spjc-auth .spjc-tech-login-error,
.spjc-auth .spjc-track-login-error,
.spjc-auth .spjc-owner-login-error,
.spjc-auth .spjc-notice {
    margin-bottom: 14px;
    padding: 11px 13px;
    border-radius: 8px;
    background: #fff1f2;
    border: 1px solid #fecaca;
    color: #9f1239;
    font-size: 13px;
    font-weight: 600;
}
.spjc-auth .spjc-mgr-btn-primary,
.spjc-auth .spjc-tech-btn-primary,
.spjc-auth .spjc-track-btn-primary,
.spjc-auth .spjc-owner-login-btn,
.spjc-auth .spjc-auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
    padding: 14px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--auth-accent) !important;
    color: #fff !important;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    box-shadow: 0 10px 0 var(--auth-accent-2);
}
.spjc-auth .spjc-mgr-btn-primary:hover,
.spjc-auth .spjc-tech-btn-primary:hover,
.spjc-auth .spjc-track-btn-primary:hover,
.spjc-auth .spjc-owner-login-btn:hover {
    transform: translateY(1px);
    box-shadow: 0 8px 0 var(--auth-accent-2);
}
.spjc-auth .spjc-track-btn-shine { display: none; }
.spjc-auth-alt,
.spjc-auth .spjc-mgr-login-alt,
.spjc-auth .spjc-owner-login-foot {
    margin: 16px 0 0 !important;
    text-align: center;
    font-size: 13px !important;
    color: #7a6550 !important;
}
.spjc-auth-alt a,
.spjc-auth .spjc-mgr-login-alt a,
.spjc-auth .spjc-owner-login-foot a {
    color: var(--auth-accent);
    font-weight: 800;
    text-decoration: underline;
}
.spjc-auth .spjc-leave-login-btn {
    display: flex;
    width: 100%;
    justify-content: center;
    margin-top: 12px;
    border: 2px solid #d7c4a6;
    color: var(--auth-ink);
    border-radius: 6px;
    background: #fff;
    text-transform: uppercase;
    font-weight: 800;
    letter-spacing: .04em;
}
.spjc-auth .spjc-leave-login-btn:hover {
    border-color: var(--auth-accent);
    color: var(--auth-accent);
}
.spjc-auth .spjc-track-devices,
.spjc-auth .spjc-track-brand { display: none; }

body.login.spjc-wp-login {
    min-height: 100vh;
    padding: 28px 16px !important;
    margin: 0;
    background:
        repeating-linear-gradient(90deg, rgba(90,62,32,.05) 0 1px, transparent 1px 28px),
        linear-gradient(160deg, #d7c39a 0%, #c4ae7d 100%) !important;
    display: flex !important;
    align-items: stretch;
    justify-content: center;
    font-family: Outfit, system-ui, sans-serif;
}
body.login.spjc-wp-login .spjc-auth-hero {
    min-height: auto;
    width: 250px;
}
body.login.spjc-wp-login #login {
    width: min(440px, 100%);
    max-width: 440px;
    margin: 0;
    padding: 28px 30px 24px !important;
    background:
        repeating-linear-gradient(transparent 0 31px, rgba(29,78,137,.08) 32px),
        #fffaf3;
    border-radius: 0 18px 18px 0;
    border: 1px solid #ead9bc;
    border-left: 2px dashed #c4ae7d;
    box-shadow: 18px 22px 40px rgba(80, 50, 16, .28);
}
body.login.spjc-wp-login .wp-login-logo,
body.login.spjc-wp-login h1.wp-login-logo { display: none; }
body.login.spjc-wp-login .spjc-auth-card-head h2 {
    font-family: Fraunces, Georgia, serif;
    font-size: 26px;
    color: #2c1810;
}
body.login.spjc-wp-login form {
    margin-top: 0;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}
body.login.spjc-wp-login label {
    font-size: 11px;
    font-weight: 800;
    color: #6b5340;
    text-transform: uppercase;
    letter-spacing: .08em;
}
body.login.spjc-wp-login .input,
body.login.spjc-wp-login input[type="text"],
body.login.spjc-wp-login input[type="password"] {
    font-size: 16px !important;
    padding: 10px 4px;
    border: 0 !important;
    border-bottom: 2px solid #d7c4a6 !important;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
body.login.spjc-wp-login .wp-pwd { display: flex; }
body.login.spjc-wp-login .button.wp-hide-pw {
    border: 0;
    background: transparent;
    color: #7a6550;
}
body.login.spjc-wp-login .forgetmenot { margin: 12px 0 18px; }
body.login.spjc-wp-login #wp-submit,
body.login.spjc-wp-login .button-primary {
    width: 100%;
    float: none;
    height: auto;
    padding: 13px 18px;
    border: 0;
    border-radius: 6px;
    background: var(--auth-accent, #1d4e89) !important;
    text-shadow: none;
    box-shadow: 0 8px 0 var(--auth-accent-2, #12315a);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}
body.login.spjc-wp-login #nav,
body.login.spjc-wp-login #backtoblog {
    padding: 10px 0 0;
    text-align: center;
    font-size: 13px;
}
body.login.spjc-wp-login #nav a,
body.login.spjc-wp-login #backtoblog a {
    color: var(--auth-accent, #1d4e89);
    font-weight: 800;
}
body.login.spjc-wp-login #login_error,
body.login.spjc-wp-login .message,
body.login.spjc-wp-login .success {
    border-radius: 8px;
    box-shadow: none;
}
body.login.spjc-wp-login .language-switcher { display: none; }
body.login.spjc-wp-login.interim-login { display: block !important; background: #f8fafc !important; }
body.login.spjc-wp-login.interim-login .spjc-auth-hero { display: none; }

.spjc-rln-brand.spjc-auth,
.spjc-rln-brand .spjc-auth,
body.login.spjc-rln-brand {
    --auth-accent: #1565c0;
    --auth-accent-2: #0d47a1;
}

/* Calm professional login palette; no received stamp decoration. */
.spjc-auth,
body.login.spjc-wp-login {
    --auth-accent: #1565c0;
    --auth-accent-2: #0d47a1;
    --auth-ink: #13253a;
    --auth-paper: #ffffff;
    --auth-kraft: #d9e5ec;
}
.spjc-auth.is-owner,
.spjc-auth.is-manager,
.spjc-auth.is-staff,
.spjc-auth.is-customer,
.spjc-auth.is-wordpress,
.spjc-auth.is-common {
    --auth-accent: #1565c0;
    --auth-accent-2: #0d47a1;
}
.spjc-auth.is-support {
    --auth-accent: #1565c0;
    --auth-accent-2: #0d47a1;
}
.spjc-auth.is-manager {
    --auth-accent: #1565c0;
    --auth-accent-2: #0d47a1;
}
.spjc-auth {
    background:
        radial-gradient(circle at 12% 10%, rgba(21, 101, 192, .13), transparent 36%),
        linear-gradient(160deg, #f8fbfc 0%, #e8f1f5 52%, #d9e5ec 100%);
}
.spjc-auth-hero {
    color: #e8f0f6;
    background: linear-gradient(180deg, #13253a, #0f1d2d);
}
.spjc-auth-hero::before,
.spjc-auth-hero::after {
    background: #d9e5ec;
}
.spjc-auth-brand small,
.spjc-auth-eyebrow {
    color: #90caf9;
}
.spjc-auth-lead {
    color: rgba(232, 240, 246, .82);
}
.spjc-auth-ticket {
    border-left-color: #1565c0;
    color: #13253a;
}
.spjc-auth-ticket header {
    color: #1565c0;
}
.spjc-auth-ticket-row span {
    color: #64788a;
}
.spjc-auth-ticket-progress {
    background: #d9e5ec;
}
.spjc-auth-panel {
    background: #ffffff;
    border-color: #d9e3ea;
    border-left-color: #b8cad6;
    box-shadow: 18px 22px 40px rgba(15, 29, 45, .16);
}
.spjc-auth-card-head {
    padding-right: 0;
}
.spjc-auth-panel::before {
    content: none;
}

.spjc-auth-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    text-align: center;
}
.spjc-auth-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 50%;
    background: transparent;
    padding: 0;
    box-shadow: 0 10px 24px rgba(15, 29, 45, .12);
}
.spjc-auth-logo strong {
    display: block;
    color: var(--auth-ink);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .01em;
}
.spjc-auth-logo-product {
    display: block;
    margin-top: -4px;
    color: var(--auth-muted, #6b7280);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.spjc-auth-card-head.is-centered {
    text-align: center;
}
.spjc-auth-card-head.is-centered h2 {
    margin-top: 0;
}

.spjc-auth.is-compact {
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 36px 16px;
}
.spjc-auth.is-compact .spjc-auth-panel {
    width: min(420px, 100%);
    border-radius: 18px;
    border: 1px solid #d9e3ea;
    box-shadow: 0 22px 50px rgba(15, 29, 45, .14);
    padding: 32px 28px 28px;
}
.spjc-auth.is-compact .spjc-auth-card {
    padding: 0;
}
.spjc-auth.is-compact .spjc-mgr-btn-primary,
.spjc-auth.is-compact .spjc-tech-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

@media (max-width: 900px) {
    .spjc-auth,
    body.login.spjc-wp-login {
        flex-direction: column;
        align-items: center;
    }
    .spjc-auth-hero,
    body.login.spjc-wp-login .spjc-auth-hero {
        width: min(440px, 100%);
        border-radius: 18px 18px 0 0;
        padding: 22px 20px 16px;
    }
    .spjc-auth-hero::before,
    .spjc-auth-hero::after { display: none; }
    .spjc-auth-points { display: none; }
    .spjc-auth-hero h1 { font-size: 22px; }
    .spjc-auth-panel,
    body.login.spjc-wp-login #login {
        width: min(440px, 100%);
        border-radius: 0 0 18px 18px;
        border-left: 1px solid #ead9bc;
        border-top: 2px dashed #c4ae7d;
        margin: 0 auto 12px;
    }
    .spjc-auth-panel::before { display: none; }
    .spjc-auth.is-compact .spjc-auth-panel {
        width: min(420px, 100%);
        border-radius: 18px;
        border-top: 1px solid #d9e3ea;
        margin: 0 auto;
    }
}

/* Manager / Support login shell (auth-only CSS — no manager-portal.css on login) */
.spjc-mgr-body-login.spjc-portal-has-footer {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    background: #d9e5ec;
    font-family: Outfit, 'Segoe UI', system-ui, -apple-system, sans-serif;
}
.spjc-mgr-body-login.spjc-portal-has-footer > .spjc-auth {
    flex: 1;
    min-height: 0;
}
.spjc-mgr-body-login .spjc-portal-site-footer {
    flex-shrink: 0;
    border-top: 4px solid #1565c0;
    background: #0f1d2d;
}
.spjc-mgr-body-login .spjc-portal-site-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.spjc-mgr-body-login .spjc-portal-footer-copy,
.spjc-mgr-body-login .spjc-portal-footer-credit {
    margin: 0;
    font-size: 12px;
    color: #a9bac9;
    line-height: 1.5;
}
.spjc-mgr-body-login .spjc-portal-footer-credit a {
    color: #90caf9;
    font-weight: 600;
    text-decoration: none;
}
.spjc-support-body-login .spjc-auth.is-support .spjc-auth-pill {
    background: rgba(21, 101, 192, .12);
    color: #0d47a1;
}
