/* ============================================================
   REG2 — refined registration design (jobseeker)
   Two-panel: left v9 testimonial slider (styled by login.css),
   right form card. Header/nav + footer come from the layout.
   ============================================================ */

/* Layout */
.reg2-page {
    display: flex;
    align-items: stretch;
    min-height: calc(100vh - 56px);
    background: #f4f6fb;
}

.reg2-side {
    flex: 0 0 46%;
    max-width: 46%;
    position: relative;
    overflow: hidden;
    background: var(--primary0, #265CFF);
}

.reg2-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    box-sizing: border-box;
}

/* Card */
.reg2-card {
    width: 100%;
    max-width: 620px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 36px rgba(15, 23, 42, 0.06), 0 2px 8px rgba(15, 23, 42, 0.04);
    border: 1px solid #eef0f5;
    overflow: hidden;
}

.reg2-card__head {
    padding: 30px 44px 22px;
    background: #fff;
    border-bottom: 1px solid #eef0f5;
    text-align: center;
}

.reg2-eyebrow {
    display: inline-block;
    font: 700 11px/1 'Gordita', sans-serif;
    letter-spacing: 0.14em;
    color: var(--primary0, #265CFF);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: #eaf0ff;
    border-radius: 999px;
}

.reg2-card__title {
    font-size: 26px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 6px;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.reg2-card__sub {
    font-size: 14px;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
}

.reg2-card__body {
    padding: 26px 44px 30px;
}

/* Social sign-in (app Google partial) — centred */
.reg2-social {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.reg2-social .social-sign-container {
    display: inline-block;
}

/* Divider */
.reg2-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.reg2-divider::before,
.reg2-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e8ecf2;
}

.reg2-divider span {
    font-size: 11.5px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 500;
    white-space: nowrap;
}

/* Fields */
.reg2-field {
    display: flex;
    flex-direction: column;
    margin-bottom: 16px;
}

.reg2-field__label {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.reg2-field__label--req::after {
    content: "*";
    color: #ef4444;
    margin-left: 1px;
}

.reg2-field__input {
    width: 100%;
    height: 44px;
    line-height: 44px;
    padding: 0 14px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    color: #0f172a;
    background: #fff;
    border: 1.5px solid #d6dbe4;
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    box-sizing: border-box;
}

.reg2-field__input::placeholder { color: #9aa3b3; }
.reg2-field__input:hover { border-color: #b6bdcc; }

.reg2-field__input:focus {
    outline: none;
    border-color: var(--primary0, #265CFF);
    box-shadow: 0 0 0 4px rgba(38, 92, 255, 0.10);
}

/* jQuery-validate error state (errorClass: "error info-alert") */
.reg2-field__input.error {
    border-color: #ef4444;
}

.reg2-field__input.error:focus {
    border-color: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

.reg2-field span.error,
.reg2-captcha span.error {
    display: block;
    font-size: 12px;
    color: #ef4444;
    margin-top: 4px;
    background: none;
    border-radius: 0;
    padding: 0;
    width: auto;
}

.reg2-captcha span.error {
    width: 100%;
    text-align: left;
}

/* Password */
.reg2-pwd { position: relative; }

.reg2-pwd .reg2-field__input { padding-right: 42px; }

/* Password toggle: inline SVG eye that swaps open/off on click (matches login) */
.reg2-pwd .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.35;
    transition: opacity 0.2s;
}

.reg2-pwd .password-toggle:hover { opacity: 0.7; }

.reg2-pwd .password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: #6b7280;
}

/* Terms */
.reg2-terms { margin: 20px 0 8px; }

.reg2-terms__label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 13px;
    line-height: 1.55;
    color: #475569;
    cursor: pointer;
    margin: 0;
}

.reg2-terms__cb {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.reg2-terms__box {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border: 1.5px solid #c5cbd6;
    border-radius: 5px;
    margin-top: 1px;
    position: relative;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.reg2-terms__cb:checked + .reg2-terms__box {
    background: var(--primary0);
    border-color: var(--primary0);
}

.reg2-terms__cb:checked + .reg2-terms__box::after {
    content: "";
    position: absolute;
    left: 5px;
    top: 1px;
    width: 5px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.reg2-terms__cb:focus-visible + .reg2-terms__box {
    box-shadow: 0 0 0 4px rgba(38, 92, 255, 0.15);
}

.reg2-terms a {
    color: var(--primary0);
    font-weight: 500;
    text-decoration: none;
}

.reg2-terms a:hover { text-decoration: underline; }

/* jQuery-validate appends the terms error span to the .reg2-terms container */
.reg2-terms span.error {
    display: block;
    color: #ef4444;
    font-size: 12px;
    margin-top: 6px;
    padding: 0 0 0 28px;
    background: none;
    border-radius: 0;
    width: auto;
}

/* Captcha (real reCAPTCHA partial) — centred */
.reg2-captcha {
    margin: 16px 0 18px;
    display: flex;
    justify-content: center;
}

/* Submit */
.reg2-submit {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 16px;
    background: var(--primary0);
    color: #fff;
    border: none;
    border-radius: 12px;
    font: 700 15px/1.2 'Gordita', sans-serif;
    cursor: pointer;
    margin-top: 4px;
    transition: background 0.18s ease, transform 0.08s ease, box-shadow 0.18s ease;
    box-shadow: 0 4px 16px rgba(38, 92, 255, 0.28);
}

.reg2-submit__arrow {
    font-size: 16px;
    line-height: 1;
}

.reg2-submit:hover {
    background: var(--primary-1, #113DD9);
    box-shadow: 0 6px 20px rgba(38, 92, 255, 0.35);
    color: #fff;
}

.reg2-submit:active { transform: translateY(1px); }

/* Card foot — Login CTA */
.reg2-card__foot {
    padding: 18px 40px 24px;
    border-top: 1px solid #f0f2f7;
    text-align: center;
    background: #fafbff;
}

.reg2-card__foot p {
    margin: 0;
    font-size: 13.5px;
    color: #64748b;
}

.reg2-card__foot a {
    color: var(--primary0);
    font-weight: 600;
    text-decoration: none;
}

.reg2-card__foot a:hover { text-decoration: underline; }

/* Side panel — refine slider overlay padding */
.reg2-side .v9-slider__slide .v5-left__overlay {
    padding: 48px 48px 96px;
}

/* ===== Responsive ===== */
@media (max-width: 1199px) {
    .reg2-side { flex: 0 0 42%; max-width: 42%; }
    .reg2-main { padding: 36px 24px; }
    .reg2-card__head { padding: 30px 32px 20px; }
    .reg2-card__body { padding: 24px 32px 28px; }
    .reg2-card__foot { padding: 16px 32px 22px; }
}

@media (max-width: 991px) {
    .reg2-page {
        flex-direction: column;
        background: #ffffff;
    }
    /* Form comes first … */
    .reg2-main {
        order: 1;
        padding: 24px 16px 32px;
    }
    /* … slider sits below the form, right above the footer */
    .reg2-side {
        order: 2;
        flex: none;
        max-width: 100%;
        width: 100%;
        height: 560px;
        min-height: 560px;
    }
    .reg2-card { max-width: 680px; margin: 0 auto; }
    .reg2-side .v9-slider__slide .v5-left__overlay {
        padding: 18px 20px 56px;
    }
}

@media (max-width: 640px) {
    .reg2-card { border-radius: 14px; }
    .reg2-card__head { padding: 28px 22px 20px; }
    .reg2-card__body { padding: 22px 22px 26px; }
    .reg2-card__foot { padding: 14px 22px 18px; }
    .reg2-card__title { font-size: 22px; }
    .reg2-card__sub { font-size: 13.5px; }
    .reg2-side { height: 480px; min-height: 480px; }
}

@media (max-width: 420px) {
    .reg2-card__head { padding: 24px 18px 18px; }
    .reg2-card__body { padding: 20px 18px 24px; }
    .reg2-card__foot { padding: 14px 18px 18px; }
}
