/* PrintCentral Custom Login — login, registration and reset password pages */

.pc-auth {
    --pc-yellow: #fdc800;
    --pc-yellow-dark: #e6b500;
    --pc-black: #0a0a0a;
    --pc-text: #1a1a1a;
    --pc-muted: #6b6b66;
    --pc-border: #e4e4df;
    --pc-field: #fafaf7;
    --pc-bg: #f3f3ef;
    --pc-radius: 12px;

    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    box-sizing: border-box;
    background-color: var(--pc-bg);
    background-image: radial-gradient(rgba(10, 10, 10, 0.06) 1px, transparent 1px);
    background-size: 22px 22px;
    color: var(--pc-text);
}

.pc-auth *,
.pc-auth *::before,
.pc-auth *::after {
    box-sizing: border-box;
}

.pc-auth__card {
    width: 100%;
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    background: #fff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(10, 10, 10, 0.04), 0 24px 60px -20px rgba(10, 10, 10, 0.25);
}

/* ---------- Brand panel ---------- */

.pc-auth__brand {
    position: relative;
    overflow: hidden;
    background: var(--pc-black);
    color: #fff;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pc-auth__brand-inner {
    position: relative;
    z-index: 1;
}

.pc-auth__eyebrow {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(253, 200, 0, 0.14);
    color: var(--pc-yellow);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pc-auth .pc-auth__brand-title {
    margin: 20px 0 28px;
    color: #fff;
    font-size: 34px;
    line-height: 1.2;
    font-weight: 600;
}

.pc-auth__brand-title span {
    color: var(--pc-yellow);
}

.pc-auth .pc-auth__perks {
    list-style: none;
    margin: 0;
    padding: 0;
}

.pc-auth .pc-auth__perks li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 14px;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
}

.pc-auth__perks .pc-auth__icon {
    flex: none;
    width: 26px;
    height: 26px;
    padding: 6px;
    border-radius: 50%;
    background: var(--pc-yellow);
    color: var(--pc-black);
    stroke-width: 3;
}

/* Decorative yellow circle + ring */
.pc-auth__brand-shape {
    position: absolute;
    right: -120px;
    bottom: -120px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--pc-yellow);
}

.pc-auth__brand-shape::after {
    content: "";
    position: absolute;
    inset: -46px;
    border-radius: 50%;
    border: 2px solid rgba(253, 200, 0, 0.35);
}

/* ---------- Form side ---------- */

.pc-auth__main {
    padding: 48px 56px;
}

.pc-auth__logo {
    display: inline-block;
    margin-bottom: 28px;
}

.pc-auth__logo img {
    display: block;
    width: 190px;
    height: auto;
}

.pc-auth .pc-auth__title {
    margin: 0 0 6px;
    color: var(--pc-text);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 600;
}

.pc-auth .pc-auth__subtitle {
    margin: 0 0 28px;
    color: var(--pc-muted);
    font-size: 15px;
}

.pc-auth .pc-auth__form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 14px;
    margin: 0;
}

.pc-auth .pc-auth__form > * {
    grid-column: 1 / -1;
}

.pc-auth .pc-auth__form > .form-row-first {
    grid-column: 1;
}

.pc-auth .pc-auth__form > .form-row-last {
    grid-column: 2;
}

.pc-auth .pc-auth__form > .clear {
    display: none;
}

.pc-auth .pc-auth__field {
    float: none;
    width: auto;
    margin: 0 0 18px;
    padding: 0;
}

.pc-auth .pc-auth__field label {
    display: block;
    margin: 0 0 7px;
    color: var(--pc-text);
    font-size: 13px;
    font-weight: 600;
}

.pc-auth .pc-auth__field .required {
    color: #d23c3c;
    border: 0;
    text-decoration: none;
}

.pc-auth__control {
    position: relative;
    display: block;
}

.pc-auth__control > .pc-auth__icon {
    position: absolute;
    left: 15px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: #9a9a94;
    pointer-events: none;
    transition: color 0.15s ease;
}

.pc-auth .pc-auth__control input.input-text {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 16px 0 44px;
    border: 1.5px solid var(--pc-border);
    border-radius: var(--pc-radius);
    background: var(--pc-field);
    box-shadow: none;
    color: var(--pc-text);
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.pc-auth .pc-auth__control input[type="password"].input-text,
.pc-auth .pc-auth__control input.input-text.is-revealed {
    padding-right: 48px;
}

.pc-auth .pc-auth__control input.input-text::placeholder {
    color: #b0b0aa;
}

.pc-auth .pc-auth__control input.input-text:hover {
    border-color: #cfcfc9;
}

.pc-auth .pc-auth__control input.input-text:focus {
    outline: none;
    border-color: var(--pc-yellow);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(253, 200, 0, 0.22);
}

.pc-auth__control:focus-within > .pc-auth__icon {
    color: var(--pc-black);
}

.pc-auth .pc-auth__toggle {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    min-height: 0;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #9a9a94;
    line-height: 1;
    cursor: pointer;
}

.pc-auth .pc-auth__toggle:hover,
.pc-auth .pc-auth__toggle[aria-pressed="true"] {
    background: rgba(10, 10, 10, 0.05);
    color: var(--pc-black);
}

.pc-auth__toggle .pc-auth__icon {
    width: 18px;
    height: 18px;
}

.pc-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: -2px 0 22px;
}

.pc-auth .pc-auth__check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--pc-muted);
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
}

.pc-auth .pc-auth__check input {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--pc-yellow);
}

.pc-auth a.pc-auth__link,
.pc-auth .pc-auth__switch a,
.pc-auth .pc-auth__alert a {
    color: var(--pc-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--pc-yellow);
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.pc-auth a.pc-auth__link {
    font-size: 14px;
}

.pc-auth a.pc-auth__link:hover,
.pc-auth .pc-auth__switch a:hover,
.pc-auth .pc-auth__alert a:hover {
    color: var(--pc-black);
    text-decoration-color: var(--pc-black);
}

.pc-auth .button.pc-auth__submit {
    width: 100%;
    height: 52px;
    margin: 4px 0 0;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: var(--pc-radius);
    background: var(--pc-yellow);
    color: var(--pc-black);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1;
    text-transform: none;
    box-shadow: 0 8px 18px -8px rgba(253, 200, 0, 0.9);
    transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.pc-auth .button.pc-auth__submit:hover {
    background: var(--pc-yellow-dark);
    color: var(--pc-black);
    transform: translateY(-1px);
    box-shadow: 0 12px 22px -10px rgba(230, 181, 0, 0.95);
}

.pc-auth .button.pc-auth__submit:focus-visible {
    outline: 3px solid var(--pc-black);
    outline-offset: 2px;
}

.pc-auth .button.pc-auth__submit.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

/* WooCommerce privacy policy text, hints */
.pc-auth .woocommerce-privacy-policy-text,
.pc-auth .pc-auth__hint {
    margin: 0 0 18px;
    color: var(--pc-muted);
    font-size: 13px;
    line-height: 1.55;
}

.pc-auth .woocommerce-privacy-policy-text p {
    margin: 0;
}

.pc-auth .woocommerce-privacy-policy-text a {
    color: var(--pc-text);
    text-decoration: underline;
}

/* Alerts */
.pc-auth__alert {
    margin: 0 0 20px;
    padding: 13px 16px;
    border-radius: var(--pc-radius);
    border: 1px solid;
    font-size: 14px;
    line-height: 1.5;
}

.pc-auth__alert--error {
    background: #fdf1f1;
    border-color: #f3caca;
    color: #9b2222;
}

.pc-auth__alert--success {
    background: #effaf2;
    border-color: #bfe6c9;
    color: #1d6b35;
}

.pc-auth__alert + .pc-auth__alert {
    margin-top: -10px;
}

.pc-auth .pc-auth__switch {
    margin: 26px 0 0;
    padding-top: 22px;
    border-top: 1px solid #efefea;
    color: var(--pc-muted);
    font-size: 14px;
    text-align: center;
}

.pc-auth .pc-auth__switch:empty {
    display: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .pc-auth__brand {
        padding: 44px 36px;
    }

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

    .pc-auth__main {
        padding: 40px 36px;
    }
}

@media (max-width: 820px) {
    .pc-auth {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .pc-auth__card {
        grid-template-columns: 1fr;
        max-width: 520px;
        border-radius: 20px;
    }

    /* On phones the brand panel becomes a slim yellow accent bar */
    .pc-auth__brand {
        padding: 0;
        height: 6px;
        background: var(--pc-yellow);
    }

    .pc-auth__brand > * {
        display: none;
    }

    .pc-auth__main {
        padding: 32px 24px 28px;
    }

    .pc-auth__logo {
        margin-bottom: 22px;
    }

    .pc-auth__logo img {
        width: 160px;
    }

    .pc-auth .pc-auth__title {
        font-size: 24px;
    }
}

@media (max-width: 420px) {
    .pc-auth .pc-auth__form > .form-row-first,
    .pc-auth .pc-auth__form > .form-row-last {
        grid-column: 1 / -1;
    }

    .pc-auth__row {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pc-auth * {
        transition: none !important;
    }
}

/* layout="form": just the form, inside your own page layout */
.pc-auth.pc-auth--form-only {
    min-height: 0;
    display: block;
    padding: 0;
    background: none;
}

.pc-auth--form-only .pc-auth__main {
    padding: 0;
}
