/* Auth: white form, dark navy panel, gold actions, gray type. */

:root {
    --pt-bg: #ffffff;
    --pt-mist: #f4f6f8;
    --pt-line: #e5e8ee;
    --pt-ink: #14181f;
    --pt-matte: #1a1d24;
    --pt-navy: #0b2545;
    --pt-navy-2: #123a6b;
    --pt-gold: #e8b923;
    --pt-gold-ink: #3a2c00;
    --pt-gray: #6b7280;
    --pt-muted: #8a93a3;
}

*, *::before, *::after { box-sizing: border-box; }

html, body.pt-auth-body {
    margin: 0;
    min-height: 100%;
    background: #fff !important;
    color: var(--pt-ink);
    font-family: Inter, system-ui, -apple-system, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.pt-auth {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    min-height: 100vh;
    width: 100%;
    background: #fff;
    overflow-x: hidden;
}

.pt-auth img {
    max-width: 100%;
    height: auto;
}

.pt-auth__vision {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
    min-width: 0;
    padding: 40px 48px;
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(700px 320px at 100% 0%, rgba(232, 185, 35, 0.22), transparent 55%),
        linear-gradient(165deg, var(--pt-navy) 0%, var(--pt-matte) 100%);
}

.pt-auth__brand a {
    display: inline-flex;
    align-items: center;
    padding: 8px 12px;
    background: #fff;
    border-radius: 12px;
}

.pt-auth__brand img {
    max-height: 40px;
    width: auto;
    display: block;
}

.pt-auth__brand-text {
    font-family: Outfit, Inter, sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--pt-navy);
}

.pt-auth__eyebrow {
    display: inline-block;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pt-gold-ink);
    background: var(--pt-gold);
}

.pt-auth__headline {
    font-family: Outfit, Inter, sans-serif;
    font-weight: 800;
    font-size: clamp(1.8rem, 3.4vw, 2.8rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
    color: #fff;
}

.pt-auth__headline span { color: var(--pt-gold); }

.pt-auth__lead {
    margin: 0 0 24px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.78);
    max-width: 40ch;
}

.pt-auth__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.pt-auth__features li {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.82);
}

.pt-auth__features li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--pt-gold);
}

.pt-auth__vision-foot {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
}

.pt-auth__panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    padding: 32px 24px;
    background: #fff;
}

.pt-auth__panel-inner {
    width: 100%;
    max-width: 440px;
}

.pt-auth__topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 24px;
}

.pt-auth__back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-gray) !important;
    text-decoration: none !important;
}

.pt-auth__back svg { width: 14px; height: 14px; }

.pt-auth__signup-top {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    color: var(--pt-gold-ink) !important;
    text-decoration: none !important;
    background: var(--pt-gold);
}

.pt-auth__card {
    padding: 28px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--pt-line);
    box-shadow: 0 18px 40px -28px rgba(11, 37, 69, 0.35);
}

.pt-auth__title {
    font-family: Outfit, Inter, sans-serif;
    font-weight: 800;
    font-size: 1.65rem;
    letter-spacing: -0.02em;
    margin: 0 0 6px;
    color: var(--pt-ink);
}

.pt-auth__subtitle {
    margin: 0 0 22px;
    font-size: 14px;
    color: var(--pt-gray);
}

.pt-auth__subtitle a {
    color: var(--pt-navy) !important;
    font-weight: 700;
    text-decoration: none;
}

.pt-auth__label {
    display: block;
    margin-bottom: 7px;
    font-size: 13px;
    font-weight: 600;
    color: var(--pt-navy);
}

.pt-auth__label .star,
.pt-auth .star { color: #c2410c; }

.pt-auth__input,
.pt-auth .input-form-control,
.pt-auth input.form-control,
.pt-auth input[type="text"],
.pt-auth input[type="email"],
.pt-auth input[type="password"],
.pt-auth input[type="tel"] {
    width: 100%;
    max-width: 100%;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--pt-line) !important;
    background: var(--pt-mist) !important;
    color: var(--pt-ink) !important;
    font-size: 15px;
    box-shadow: none !important;
}

.pt-auth__input:focus,
.pt-auth input.form-control:focus {
    border-color: var(--pt-navy) !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(11, 37, 69, 0.12) !important;
}

.pt-auth form,
.pt-auth .form-horizontal {
    margin: 0;
}

.pt-auth__field { margin-bottom: 16px; position: relative; }

#show_hide_password,
#password-div {
    position: relative;
}

.pt-auth__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

#show_hide_password .pt-auth__input,
#password-div .pt-auth__input {
    padding-right: 44px;
}

.pt-auth__eye {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: var(--pt-muted);
    line-height: 0;
}

.pt-auth__submit,
.pt-auth-body .btn-primary,
.pt-auth .btn-primary {
    display: flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    padding: 12px 18px !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--pt-gold-ink) !important;
    background: var(--pt-gold) !important;
    box-shadow: 0 10px 22px -12px rgba(232, 185, 35, 0.75);
    cursor: pointer;
}

.pt-auth__submit:hover,
.pt-auth-body .btn-primary:hover,
.pt-auth .btn-primary:hover {
    background: #f3c94a !important;
    color: var(--pt-gold-ink) !important;
}

.pt-auth__submit:disabled {
    opacity: 0.7;
    cursor: wait;
}

.pt-auth__submit svg,
.pt-auth .btn-primary svg,
.pt-auth__back svg {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0;
}

.pt-auth .spinner-border {
    width: 1rem;
    height: 1rem;
    color: var(--pt-gold-ink);
    border-width: 2px;
}

.pt-auth__petiht {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 68px;
    margin: 4px 0 2px;
    padding: 12px 14px 12px 12px;
    border-radius: 16px;
    border: 1px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        linear-gradient(135deg, #f4e3a6 0%, #0b2545 48%, #1a1d24 100%) border-box;
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.8) inset,
        0 10px 28px -18px rgba(11, 37, 69, 0.55);
    color: var(--pt-navy) !important;
    text-decoration: none !important;
    transition: transform .18s ease, box-shadow .18s ease;
}
.pt-auth__petiht:hover {
    transform: translateY(-1px);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.9) inset,
        0 16px 32px -16px rgba(11, 37, 69, 0.5);
}
.pt-auth__petiht:focus-visible {
    outline: 2px solid var(--pt-gold);
    outline-offset: 3px;
}
.pt-auth__petiht-logo {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    overflow: hidden;
    background: #0b2545;
    box-shadow: 0 0 0 3px #fff, 0 6px 14px -6px rgba(11, 37, 69, 0.45);
}
.pt-auth__petiht-logo img {
    width: 44px !important;
    height: 44px !important;
    max-width: none;
    object-fit: contain;
    display: block;
}
.pt-auth__petiht-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
    text-align: left;
}
.pt-auth__petiht-label {
    font-family: Outfit, Inter, sans-serif;
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--pt-ink);
}
.pt-auth__petiht-hint {
    font-size: 12px;
    font-weight: 500;
    color: var(--pt-gray);
    line-height: 1.3;
}
.pt-auth__petiht-go {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--pt-navy);
    color: var(--pt-gold);
    flex: 0 0 34px;
}
.pt-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 18px;
    color: var(--pt-muted);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.pt-auth__divider::before,
.pt-auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--pt-line);
}

.pt-auth__forgot {
    display: block;
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: var(--pt-navy) !important;
    text-decoration: none !important;
}

.pt-auth__signup-banner {
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    background: var(--pt-mist);
    border: 1px dashed var(--pt-line);
}

.pt-auth__signup-banner p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--pt-gray);
}

.pt-auth__signup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 700;
    color: #fff !important;
    text-decoration: none !important;
    background: var(--pt-navy);
}

.pt-auth__error,
.pt-auth .error { color: #b42318; font-size: 13px; margin-top: 6px; display: block; }

.pt-auth__types {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 12px 0 18px;
    position: relative;
}

.pt-auth__types input {
    display: none;
}

.pt-auth__type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 16px 10px;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    text-align: center;
    font-weight: 700;
    color: var(--pt-ink);
}

.pt-auth__types input:checked + .pt-auth__type {
    border-color: var(--pt-gold);
    box-shadow: 0 0 0 3px rgba(232, 185, 35, 0.25);
    background: #fffdf4;
}

.pt-auth__type img {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 50%;
}

.pt-auth__captcha {
    margin-bottom: 16px;
    max-width: 100%;
    overflow: auto;
}
.pt-auth .iti { width: 100% !important; display: block; position: relative; z-index: 3; }
.pt-auth .iti input { width: 100% !important; }
.pt-auth .iti__country-list { z-index: 20; max-width: 100%; }

.pt-auth__demo { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--pt-line); }
.pt-auth__demo-label {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pt-muted);
    margin-bottom: 10px;
}
.pt-auth__demo-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.pt-auth__demo-row .btn {
    font-size: 12px;
    padding: 8px;
    border-radius: 8px;
    border: 1px solid var(--pt-line) !important;
    color: var(--pt-navy) !important;
    background: #fff !important;
}

.pt-auth .alert-px {
    display: block !important;
    position: relative !important;
    margin: 0 0 16px !important;
    justify-content: unset !important;
}
.pt-auth .alert {
    position: relative !important;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: 100% !important;
    margin: 0;
    padding: 14px 16px;
    border-radius: 12px;
    border: 1px solid #f1d0d0;
    background: #fff8f6 !important;
    color: var(--pt-ink);
    box-shadow: none;
}
.pt-auth .alert-body { width: 100%; }
.pt-auth .gap-20 { gap: 12px; }
.pt-auth .alert-icon img { width: 28px; height: 28px; }
.pt-auth .alert-title-text { margin: 0; font-size: 14px; font-weight: 700; }
.pt-auth .alert-body-text { margin: 4px 0 0; font-size: 13px; color: var(--pt-gray); }
.pt-auth .alert-btn-close,
.pt-auth .btn-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 0.7;
}

@media (max-width: 991px) {
    .pt-auth { grid-template-columns: 1fr; }
    .pt-auth__vision { display: none; }
    .pt-auth__panel { padding: 24px 16px 40px; min-height: 100vh; }
}

@media (max-width: 520px) {
    .pt-auth__row,
    .pt-auth__types { grid-template-columns: 1fr; }
    .pt-auth__card { padding: 22px 16px; }
}
