/*
 * Panchratna Core — registration & login. Mobile first.
 * Brand: maroon #5c0919 (primary), coral #ff6d59 (accent).
 * !important only where the site theme's global heading / button / input
 * rules (text-transform, colours, borders) would otherwise reshape the form.
 */
.pv-auth {
    --pv-accent: #5c0919;
    --pv-accent-dark: #420510;
    --pv-accent-soft: #f7eef0;
    --pv-coral: #ff6d59;
    --pv-ink: #1f2430;
    --pv-muted: #6b7280;
    --pv-line: #e3e5ea;
    --pv-field: #d4d7de;
    display: flex;
    justify-content: center;
    padding: 12px 0 24px;
    color: var(--pv-ink);
}

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

/* ---------- Card ---------- */
.pv-auth__form {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px 18px;
    background: #fff;
    border: 1px solid var(--pv-line);
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(31, 36, 48, .07);
}

.pv-auth__form--wide {
    max-width: 760px;
}

@media (min-width: 640px) {
    .pv-auth__form {
        padding: 32px 36px;
    }
}

.pv-auth__header {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pv-auth__title {
    margin: 0 !important;
    color: var(--pv-accent) !important;
    font-size: 1.6rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: -.01em;
    text-transform: none !important;
}

.pv-auth__lead {
    margin: 0;
    color: var(--pv-muted);
    font-size: .95rem;
    line-height: 1.5;
}

/* ---------- Sections ---------- */
.pv-auth__section {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--pv-line);
}

.pv-auth__section-title {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 0 !important;
    color: var(--pv-ink) !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
}

.pv-auth__step {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--pv-accent-soft);
    color: var(--pv-accent);
    font-size: .8rem;
    font-weight: 800;
}

/* ---------- Fields ---------- */
.pv-auth__row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

@media (min-width: 640px) {
    .pv-auth__row {
        grid-template-columns: 1fr 1fr;
    }

    .pv-auth__row--3 {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.pv-auth__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.pv-auth__field>label,
.pv-auth__label {
    margin: 0;
    color: var(--pv-ink);
    font-size: .88rem;
    font-weight: 600;
}

.pv-auth__field label small {
    color: var(--pv-muted);
    font-weight: 400;
    font-size: .78rem;
}

.pv-auth input[type=text],
.pv-auth input[type=email],
.pv-auth input[type=tel],
.pv-auth input[type=date],
.pv-auth input[type=password],
.pv-auth select {
    width: 100% !important;
    height: 48px !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid var(--pv-field) !important;
    border-radius: 12px !important;
    background: #fff !important;
    color: var(--pv-ink) !important;
    font: inherit;
    font-size: 16px !important;
    /* 16px stops iOS from zooming the page */
    line-height: 48px;
    box-shadow: none !important;
    transition: border-color .15s, box-shadow .15s;
}

.pv-auth select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px !important;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px !important;
}

.pv-auth input::placeholder {
    color: #a0a5b1;
}

.pv-auth input:focus,
.pv-auth select:focus {
    border-color: var(--pv-accent) !important;
    box-shadow: 0 0 0 4px rgba(92, 9, 25, .1) !important;
    outline: none !important;
}

.pv-auth__hint {
    color: var(--pv-muted);
    font-size: .78rem;
}

.pv-auth__hint.is-weak {
    color: #b42318;
}

.pv-auth__hint.is-ok {
    color: #1e6b34;
}

.pv-auth__hint.is-ok::before {
    content: "✓ ";
}

/* Password + eye */
.pv-auth__password {
    position: relative;
}

.pv-auth__password input {
    padding-right: 52px !important;
}

.pv-auth__reveal {
    position: absolute !important;
    top: 4px !important;
    right: 4px !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px !important;
    height: 40px !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 10px !important;
    background: transparent !important;
    color: var(--pv-muted) !important;
    box-shadow: none !important;
    cursor: pointer;
}

.pv-auth__reveal:hover,
.pv-auth__reveal:focus-visible {
    background: #f2f3f5 !important;
    color: var(--pv-ink) !important;
    outline: none;
}

.pv-auth__reveal svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv-auth__reveal .pv-auth__eye-off,
.pv-auth__reveal[aria-pressed="true"] .pv-auth__eye {
    display: none;
}

.pv-auth__reveal[aria-pressed="true"] .pv-auth__eye-off {
    display: block;
}

/* Male / Female */
.pv-auth__choice {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pv-auth__option {
    position: relative;
    margin: 0;
    cursor: pointer;
}

.pv-auth__option input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.pv-auth__option-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    padding: 0 12px;
    border: 1.5px solid var(--pv-field);
    border-radius: 12px;
    background: #fff;
    color: var(--pv-ink);
    font-weight: 700;
    font-size: 1rem;
    transition: border-color .15s, background-color .15s, color .15s;
}

.pv-auth__option-box svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv-auth__option:hover .pv-auth__option-box {
    border-color: var(--pv-accent);
}

.pv-auth__option input:checked+.pv-auth__option-box {
    border-color: var(--pv-accent);
    background: var(--pv-accent-soft);
    color: var(--pv-accent);
    box-shadow: inset 0 0 0 1px var(--pv-accent);
}

.pv-auth__option input:focus-visible+.pv-auth__option-box {
    box-shadow: 0 0 0 4px rgba(92, 9, 25, .15);
}

/* ---------- Footer: terms, check, submit ---------- */
.pv-auth__footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--pv-line);
}

.pv-auth__check {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 0;
    font-size: .9rem;
    line-height: 1.4;
}

.pv-auth__check input {
    width: 20px;
    height: 20px;
    margin: 0;
    flex: 0 0 auto;
    accent-color: var(--pv-accent);
}

.pv-auth__check a {
    color: var(--pv-accent);
    font-weight: 600;
}

.pv-auth__captcha {
    min-height: 0;
}

.pv-auth__math {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 12px 10px 14px;
    border: 1px dashed var(--pv-field);
    border-radius: 12px;
    background: #fafbfc;
}

.pv-auth__math label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: .92rem;
    font-weight: 600;
    color: var(--pv-ink);
}

.pv-auth__math label svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--pv-accent);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pv-auth .pv-auth__math input {
    width: 88px !important;
    height: 42px !important;
    text-align: center;
    font-weight: 700;
}

.pv-auth__submit {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 24px !important;
    border: 0 !important;
    border-radius: 12px !important;
    background: var(--pv-accent) !important;
    color: #fff !important;
    font-size: 1rem !important;
    font-weight: 700 !important;
    letter-spacing: .01em;
    text-transform: none !important;
    box-shadow: 0 6px 16px rgba(92, 9, 25, .2) !important;
    cursor: pointer;
    transition: background-color .15s, transform .05s;
}

.pv-auth__submit:hover {
    background: var(--pv-accent-dark) !important;
}

.pv-auth__submit:active {
    transform: translateY(1px);
}

.pv-auth__submit[disabled] {
    opacity: .65;
    cursor: wait;
}

.pv-auth__switch,
.pv-auth__links {
    margin: 0;
    text-align: center;
    color: var(--pv-muted);
    font-size: .92rem;
}

.pv-auth__links {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.pv-auth__switch a,
.pv-auth__links a {
    color: var(--pv-accent) !important;
    font-weight: 700;
    text-decoration: none;
}

.pv-auth__switch a:hover,
.pv-auth__links a:hover {
    text-decoration: underline;
}

/* ---------- Notices ---------- */
.pv-auth__notice {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: .9rem;
    line-height: 1.45;
}

.pv-auth__notice.is-error {
    background: #fdeeec;
    color: #8a1f24;
    border: 1px solid #f7cfca;
}

.pv-auth__notice.is-success {
    background: #e9f6ec;
    color: #1e6b34;
    border: 1px solid #c6e8cf;
}

.pv-auth__notice.is-info {
    background: #eaf2fb;
    color: #135e96;
    border: 1px solid #c9ddf2;
}

/* Honeypot: off-screen, not display:none (some bots skip hidden fields). */
.pv-auth__trap {
    position: absolute !important;
    left: -9999px !important;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Login card (single column) keeps the same field look. */
.pv-auth__form:not(.pv-auth__form--wide) .pv-auth__title {
    font-size: 1.45rem !important;
}