:root {
    --ph-card-border: #f0eff2;
    --ph-focus-ring: 0 0 0 3px rgba(255, 91, 91, .15);
    --ph-control-height: 44px;
    --ph-btn-height: 46px;
}

/* ---------- Layout ---------- */
.ph-auth {
    display: grid;
    grid-template-columns: minmax(360px, 5fr) minmax(0, 7fr);
    min-height: 100vh;
    font-family: var(--ph-font);
    font-size: 14px;
    color: var(--ph-body);
}

/* ---------- Brand panel ---------- */
.ph-brand {
    display: flex;
    flex-direction: column;
    gap: 32px;
    padding: 40px 48px;
}

.ph-brand__logo {
    display: block;
    width: 236px;
    max-width: 100%;
    height: auto;
}

.ph-brand__content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* ---------- Brand panel: marketing copy ---------- */
.ph-brand-copy {
    max-width: 460px;
    margin-bottom: 36px;
}

.ph-brand-copy__title {
    margin: 0;
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    color: #fff;
}

.ph-brand-copy__lead {
    margin: 14px 0 0;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.5;
    color: #fff;
}

.ph-brand-copy__body {
    margin: 10px 0 0;
    font-size: 15px;
    line-height: 1.6;
    color: var(--ph-navy-text);
}

/* ---------- Brand panel: decorative preview cards ---------- */
.ph-preview__card--candidate {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ph-preview__avatar {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    color: var(--ph-coral);
    background: var(--ph-coral-tint);
}

.ph-preview__person {
    flex: 1 1 auto;
    min-width: 0;
}

.ph-preview__name {
    font-size: 14px;
    font-weight: 600;
}

.ph-preview__meta {
    font-size: 12px;
    color: var(--ph-muted);
}

.ph-preview__tag {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    color: #1f9d57;
    background: var(--ph-success-tint);
}

.ph-preview__label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .5px;
    text-transform: uppercase;
    color: var(--ph-muted);
}

.ph-preview__card--pipeline .ph-preview__label {
    margin-bottom: 10px;
}

.ph-preview__score {
    margin-top: 4px;
    font-size: 28px;
    font-weight: 700;
}

.ph-preview__bar {
    height: 6px;
    margin-top: 8px;
    overflow: hidden;
    border-radius: 3px;
    background: #f3f2f5;
}

.ph-preview__bar > span {
    display: block;
    height: 100%;
    background: var(--ph-coral);
}

.ph-preview__stages {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

.ph-preview__stage {
    padding: 8px;
    border-radius: var(--ph-radius);
    background: var(--ph-bg);
}

.ph-preview__stage b {
    display: block;
    font-size: 18px;
}

.ph-preview__stage span {
    font-size: 11px;
    color: var(--ph-muted);
}

.ph-preview__stage--active,
.ph-preview__stage--active span {
    color: var(--ph-coral);
    background: var(--ph-coral-tint);
}

.ph-brand__footer {
    font-size: 12px;
    color: var(--ph-navy-text);
}

.ph-brand__footer a {
    color: var(--ph-navy-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ph-brand__footer a:hover,
.ph-brand__footer a:focus-visible {
    color: #fff;
}

/* ---------- Form panel ---------- */
.ph-surface {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
}

.ph-surface__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
    max-width: 520px;
}

.ph-surface__logo {
    display: none;
    width: 216px;
    max-width: 100%;
    height: auto;
}

.ph-card {
    border-color: var(--ph-card-border);
}

.light-style .ph-card .bs-stepper.wizard-modern .bs-stepper-content {
    background-color: transparent;
    box-shadow: none;
}

.ph-below-card {
    text-align: center;
    color: var(--ph-body);
}

/* ---------- Typography ---------- */
.ph-surface h1,
.ph-surface h2,
.ph-surface h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--ph-ink);
}

.ph-surface h4,
.ph-surface h5,
.ph-surface h6 {
    font-weight: 600;
    color: var(--ph-ink);
}

.ph-surface p,
.ph-surface small {
    color: var(--ph-body);
}

.ph-surface .form-label,
.ph-surface label {
    margin-bottom: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ph-heading);
    text-transform: none;
    letter-spacing: normal;
}

.ph-surface a:not(.ph-btn) {
    color: var(--ph-coral);
    font-weight: 600;
}

.ph-surface a:not(.ph-btn):hover {
    color: var(--ph-coral-hover);
}

.ph-surface hr {
    border-color: var(--ph-divider);
    opacity: 1;
}

/* ---------- Bootstrap bridge: inputs ---------- */
.ph-surface .form-control,
.ph-surface .form-select,
.ph-surface .select2-container--default .select2-selection--single {
    min-height: var(--ph-control-height);
    border: 1px solid var(--ph-border);
    border-radius: var(--ph-radius);
    font-family: var(--ph-font);
    font-size: 14px;
    color: var(--ph-ink);
    background-color: #fff;
}

.ph-surface .form-control:focus,
.ph-surface .form-select:focus,
.ph-surface .select2-container--focus .select2-selection--single,
.ph-surface .select2-container--open .select2-selection--single {
    border-color: var(--ph-coral);
    box-shadow: var(--ph-focus-ring);
    outline: none;
}

.ph-surface .form-control.is-invalid,
.ph-surface .form-select.is-invalid,
.ph-surface .is-invalid .select2-selection--single {
    border-color: var(--ph-error);
}

.ph-surface .invalid-feedback,
.ph-surface .fv-plugins-message-container .fv-help-block {
    color: var(--ph-error);
    font-size: 12px;
}

/* Password toggle: merged input groups share the input's border and focus state */
.ph-surface .input-group-merge .input-group-text {
    border-color: var(--ph-border);
    border-radius: 0 var(--ph-radius) var(--ph-radius) 0;
    color: var(--ph-muted);
    background-color: #fff;
}

.ph-surface .input-group-merge .form-control:not(:last-child) {
    border-radius: var(--ph-radius) 0 0 var(--ph-radius);
}

.ph-surface .input-group:focus-within .input-group-text {
    border-color: var(--ph-coral);
}

.ph-surface .input-group:has(.is-invalid) .input-group-text {
    border-color: var(--ph-error);
}

.ph-surface .form-check-input {
    border-color: var(--ph-border);
}

.ph-surface .form-check-input:checked {
    border-color: var(--ph-coral);
    background-color: var(--ph-coral);
}

.ph-surface .form-check-input:focus {
    border-color: var(--ph-coral);
    box-shadow: var(--ph-focus-ring);
}

/* ---------- Bootstrap bridge: buttons ---------- */
.ph-surface .btn {
    min-height: var(--ph-btn-height);
    padding: 0 26px;
    border-radius: var(--ph-radius);
    font-family: var(--ph-font);
    font-size: 15px;
    font-weight: 600;
}

.ph-surface .btn-primary,
.ph-surface .btn-success {
    border: 0;
    color: #fff;
    background-color: var(--ph-coral);
    box-shadow: var(--ph-btn-shadow);
}

.ph-surface .btn-primary:hover,
.ph-surface .btn-primary:focus,
.ph-surface .btn-primary:active,
.ph-surface .btn-success:hover,
.ph-surface .btn-success:focus,
.ph-surface .btn-success:active {
    color: #fff;
    background-color: var(--ph-coral-hover);
}

.ph-surface .btn-label-secondary,
.ph-surface .btn-outline-secondary {
    border: 1px solid var(--ph-border);
    color: var(--ph-heading);
    background-color: #fff;
    box-shadow: none;
}

.ph-surface .btn-label-secondary:hover,
.ph-surface .btn-label-secondary:focus,
.ph-surface .btn-outline-secondary:hover,
.ph-surface .btn-outline-secondary:focus {
    border-color: var(--ph-coral);
    color: var(--ph-heading);
    background-color: #fff;
}

.ph-surface .btn:focus-visible {
    outline: 2px solid var(--ph-coral);
    outline-offset: 2px;
}

.ph-surface .btn:disabled,
.ph-surface .btn.disabled {
    opacity: .55;
    cursor: not-allowed;
}

/* ---------- Tablet and mobile: brand panel, card chrome and cursor layers are handled by powerhire-auth.css ---------- */
@media (max-width: 960px) {
    .ph-auth {
        overflow-x: hidden;
    }

    .ph-surface {
        align-items: flex-start;
        padding: 24px 16px;
    }

    .ph-surface__logo {
        display: block;
        align-self: flex-start;
    }

    .ph-card {
        width: 100%;
        min-width: 0;
    }

    .ph-surface .bs-stepper-header {
        flex-wrap: wrap;
        gap: 8px;
    }
}

/* ---------- Mobile: col-sm-* field rows stack into a single column below 576px ---------- */
@media (max-width: 575.98px) {
    .ph-card {
        padding: 16px 0;
    }

    .ph-surface .btn {
        padding: 0 18px;
    }

    .ph-surface .bs-stepper-header .line {
        display: none;
    }
}

.ph-surface a:not(.ph-btn):focus-visible,
.ph-surface .input-group-text:focus-visible,
.ph-consent__read:focus-visible {
    outline: 2px solid #0e1b4d;
    outline-offset: 2px;
    border-radius: 4px;
}
