/* Login presentation only. Registration, reset and authentication use the existing flow. */
body.partner-login {
    --ink: #ecece3;
    --muted: #a1a496;
    --accent: #c9aa73;
    --line: #3d3d32;
    color-scheme: dark;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at 44% 0%, #29251a45, transparent 55%), #0b0b0a;
    color: var(--ink);
}
.partner-login a { text-decoration: none; }
.partner-login button, .partner-login a, .partner-login input { touch-action: manipulation; }
.partner-login :focus-visible { outline: 2px solid #e4cca2; outline-offset: 4px; }
.partner-login svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.pl-skip { position: absolute; left: 24px; top: -100px; padding: 12px; background: #191a17; z-index: 10; }
.pl-skip:focus { top: 12px; }
.pl-header { width: min(1440px, 100%); min-height: 96px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 17px 48px; margin: 0 auto; }
.pl-brand { display: flex; align-items: center; gap: 23px; min-width: 0; }
.pl-logo { display: block; width: 245px; height: auto; max-width: 100%; }
.pl-wordmark { color: #e4cca2; font-size: 31px; font-weight: 650; letter-spacing: 3px; line-height: 1.3; white-space: nowrap; }
.pl-wordmark>span { font-weight: 300; color: #c9aa73; }
.pl-wordmark i { font-size: 28px; font-style: normal; margin-left: 8px; color: #c9aa73; }
.pl-brand-label { border-left: 1px solid #55462f; padding-left: 23px; }
.pl-brand-label b { display: block; font-size: 13px; font-weight: 400; letter-spacing: 2px; white-space: nowrap; color: #d4c7ab; }
.pl-brand-label small { font-size: 8px; letter-spacing: 1.6px; color: #9a927e; white-space: nowrap; }
.pl-header-links { display: flex; align-items: center; gap: 25px; }
.pl-front { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 12px; color: #b4b0a2; white-space: nowrap; }
.pl-front span { color: var(--accent); }
.pl-header select { font: inherit; font-size: 12px; padding: 8px 12px; min-height: 44px; border: 1px solid #3b392e; border-radius: 4px; background: #171713; color: #d4c7ab; max-width: 150px; }
main.pl-main { display: grid; align-items: stretch; grid-template-columns: minmax(0,1.1fr) minmax(390px,1fr); gap: 0; width: calc(100% - 96px); height: calc(100svh - 200px); min-height: 660px; max-height: 900px; max-width: 1344px; margin: 16px auto 24px; padding: 0; outline: 0; flex: none; border: 1px solid #3b372a; border-radius: 6px; overflow: hidden; box-shadow: 0 25px 90px #0003; background: #121310; }
.pl-visual { position: relative; isolation: isolate; min-width: 0; overflow: hidden; background: #0d0e0b; display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid #454031; }
.pl-scene { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; object-fit: cover; object-position: 51% 54%; }
.pl-visual:before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: linear-gradient(180deg,#0b0c0bf5 0%,#0c0c0adc 23%,#0c0c0a68 47%,#0c0c0a10 66%,#0c0c0ade 84%,#0c0c0afb 100%); }
.pl-visual:after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg,#0c0b0865,transparent 70%); }
.pl-visual-copy { padding: 42px 44px 18px; }
.pl-eyebrow { font-size: 9px; letter-spacing: 1.9px; color: var(--accent); line-height: 1.8; font-weight: 400; display: flex; align-items: center; gap: 11px; }
.pl-eyebrow>span { display: block; width: 25px; height: 1px; background: var(--accent); }
.pl-visual h1 { font-family: Baskerville,"Songti SC",STSong,serif; font-size: clamp(38px,3.4vw,54px); line-height: 1.42; letter-spacing: 2px; font-weight: 400; color: #ede4d1; margin: 23px 0 17px; max-width: none; }
.pl-visual h1>span { color: #dfc28c; }
.pl-story { font-size: 13px; color: #c5bda9; line-height: 1.95; letter-spacing: .3px; }
.pl-scene-types { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 10px; letter-spacing: .5px; color: #c2ad83; margin-top: 22px; }
.pl-scene-types i { width: 2px; height: 2px; border-radius: 50%; background: #b69b68; }
.pl-visual-bottom { padding: 0 40px 30px; }
.pl-photo-note { font-family: Baskerville,Georgia,serif; font-size: 17px; letter-spacing: .25px; color: #e4d3b0; margin: 0 0 22px; font-style: italic; }
.pl-features { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; border-top: 1px solid #a48a514d; padding-top: 19px; }
.pl-features>div { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pl-features svg { width: 20px; height: 24px; color: var(--accent); }
.pl-features b { font-size: 12px; font-weight: 400; display: block; color: #ded2b9; }
.pl-features small { font-size: 10px; color: #b5ad9b; display: block; margin-top: 3px; }
.pl-form-region { display: flex; align-items: center; justify-content: center; padding: 40px clamp(35px,4.1vw,66px); min-width: 0; background: linear-gradient(145deg,#1d1d179c,#141511 60%); position: relative; }
.pl-form-region:before { content: ""; position: absolute; left: 40px; right: 40px; top: 0; height: 1px; background: linear-gradient(90deg,transparent,#d2b3789c,transparent); }
.pl-panel { width: 100%; max-width: 420px; }
.pl-panel>.pl-eyebrow { margin: 0 0 18px; }
.pl-panel h2 { font-family: Baskerville,"Songti SC",STSong,serif; font-size: 33px; font-weight: 400; letter-spacing: 1.5px; line-height: 1.4; color: #ece5d6; margin: 0; }
.pl-welcome { font-size: 13px; color: #b3b1a3; line-height: 1.8; margin: 8px 0 28px; }
.pl-field { margin-bottom: 20px; }
.pl-field>label { display: block; font-size: 13px; color: #d2cebf; font-weight: 400; margin: 0 0 8px; }
.pl-input { display: flex; align-items: center; gap: 11px; background: #11120f; border: 1px solid #3d3d32; border-radius: 4px; min-height: 52px; padding: 0 14px; transition: border-color .16s,box-shadow .16s; }
.pl-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px #c9aa7312; background: #171813; }
.pl-input>svg { color: #98977f; width: 17px; height: 17px; }
.pl-input input { width: 100%; min-width: 0; min-height: 50px; padding: 12px 0; background: transparent; color: #ecece3; border: 0; outline: 0; box-shadow: none; border-radius: 0; font-size: 16px; line-height: 1.5; }
.pl-input input::placeholder { font-size: 13px; color: #8d9180; }
.partner-login .pl-input input:focus-visible { outline: 0; }
.partner-login .pl-show-password { width: 38px; height: 44px; display: grid; place-items: center; color: #9a9b86; margin: 0 -7px 0 0; padding: 0; flex-shrink: 0; border-radius: 3px; background: transparent; }
.pl-show-password:hover { background: #25271f; color: #e4cca2; }
.pl-eye-slash { display: none; }
.pl-show-password[aria-pressed=true] .pl-eye-slash { display: block; }
.pl-options { display: flex; justify-content: flex-end; align-items: center; min-height: 44px; margin: -10px 0 14px; font-size: 12px; }
.pl-options a { color: #cdb78a; padding: 10px 0; }
.partner-login .status:not(:empty) { font-size: 13px; line-height: 1.7; padding: 10px 12px; border: 1px solid #79533e; border-radius: 4px; margin: 0 0 16px; background: #34271d; color: #e8c2a4!important; }
.partner-login .pl-submit { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px; width: 100%; border-radius: 4px; font-size: 14px; font-weight: 500; padding: 12px 20px; margin: 0; background: linear-gradient(110deg,#dbc18e,#bd9e66); color: #201e16; border: 1px solid #d1b47e; box-shadow: 0 4px 19px #c9aa7310; }
.pl-submit>span:last-child { margin-left: auto; font-size: 20px; line-height: 1; }
.pl-submit>span:first-child { margin-left: auto; }
.partner-login .pl-submit:hover { background: #e4cca2; }
.pl-join { border-top: 1px solid #37392e; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 30px; padding-top: 20px; min-height: 45px; font-size: 12px; color: #a7a997; text-align: center; }
.pl-join a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: #ddc28d; }
.pl-options a:hover, .pl-join a:hover, .pl-front:hover { color: #e4cca2; text-decoration: underline; }
.pl-footer { display: flex; justify-content: space-between; align-items: center; gap: 15px; width: min(1440px,100%); min-height: 64px; margin: auto auto 0; padding: 14px 48px; font-size: 10px; color: #999b88; text-align: left; }
.pl-signature { font-family: Baskerville,Georgia,serif; letter-spacing: 2px; color: #a69a7c; }
.partner-login dialog { background: #191a16; border-color: #5a513a; border-radius: 6px; color: #ece5d4; }
.partner-login dialog::backdrop { background: #0009; backdrop-filter: blur(6px); }
.partner-login dialog button:not(.close) { background: #c9aa73; color: #211e16; border-radius: 4px; }
.partner-login dialog .close { color: #d4c29b; }
.partner-login dialog a { color: #d4c29b; text-decoration: underline; }
html[lang=en] .pl-visual h1, html[lang=vi] .pl-visual h1 { font-size: clamp(32px,3vw,49px); letter-spacing: -.3px; }
html[lang=en] .pl-features b, html[lang=vi] .pl-features b { font-size: 11px; }
@media(min-width:901px) and (max-height:830px) {
    .pl-header { min-height: 80px; padding-block: 12px; }
    main.pl-main { height: auto; min-height: max(570px,calc(100svh - 164px)); margin-block: 12px; }
    .pl-visual-copy { padding-top: 30px; }
    .pl-visual h1 { font-size: 39px; margin-top: 17px; }
    .pl-footer { min-height: 60px; padding-block: 10px; }
}
@media(min-width:901px) and (max-width:1199px) {
    .pl-header, .pl-footer { padding-inline: 30px; }
    .pl-brand { gap: 16px; }
    .pl-wordmark { font-size: 27px; }
    .pl-front { display: none; }
    main.pl-main { width: calc(100% - 60px); grid-template-columns: minmax(0,1fr) minmax(362px,1fr); }
    .pl-visual-copy { padding-inline: 30px; }
    .pl-visual h1 { font-size: 38px; letter-spacing: .7px; }
    .pl-visual-bottom { padding-inline: 27px; }
    .pl-features { gap: 8px; }
    .pl-features>div { gap: 5px; }
    .pl-features b { font-size: 11px; }
    .pl-form-region { padding-inline: 32px; }
}
@media(max-width:900px) {
    .pl-header { padding: 20px 32px; min-height: 90px; }
    .pl-front { display: none; }
    main.pl-main { display: block; width: min(560px,calc(100% - 64px)); height: auto; min-height: 0; max-height: none; margin: 50px auto 35px; overflow: visible; border-color: #4a4230; }
    .pl-visual { display: none; }
    .pl-form-region { padding: 45px 48px 35px; border-radius: 6px; }
    .pl-panel { max-width: none; }
    .pl-signature { display: none; }
    .pl-footer { padding-inline: 32px; }
}
@media(max-width:699px) {
    .pl-logo { width: min(245px,calc(100vw - 150px)); }
    .pl-header { padding: 14px 23px; min-height: 78px; border-bottom: 1px solid #2b2b23; gap: 12px; }
    .pl-brand-label { display: none; }
    .pl-wordmark { font-size: 25px; letter-spacing: 2px; }
    .pl-wordmark i { font-size: 22px; margin-left: 4px; }
    .pl-header select { font-size: 11px; padding-inline: 8px; max-width: 110px; }
    main.pl-main { width: 100%; border: 0; box-shadow: none; border-radius: 0; background: transparent; margin: 0; flex: 1; }
    .pl-form-region { padding: 33px 26px 28px; background: transparent; max-width: 490px; margin: auto; }
    .pl-form-region:before { display: none; }
    .pl-panel>.pl-eyebrow { margin-bottom: 23px; font-size: 8px; letter-spacing: 1.4px; }
    .pl-panel h2 { font-size: 32px; }
    .pl-welcome { font-size: 13px; margin: 8px 0 26px; }
    .pl-input { min-height: 54px; }
    .pl-input input { min-height: 52px; }
    .pl-join { margin-top: 26px; padding-top: 16px; font-size: 11px; }
    .pl-footer { padding: 16px 23px; justify-content: center; text-align: center; font-size: 9px; border-top: 1px solid #28291f; min-height: 60px; }
}
@media(max-width:360px) {
    .pl-header { padding-inline: 18px; }
    .pl-wordmark { font-size: 21px; }
    .pl-wordmark i { display: none; }
    .pl-form-region { padding-inline: 21px; }
}
@media(prefers-reduced-motion:reduce) { .partner-login * { transition: none!important; } }
/* Let long localized or error messages expand the panel without clipping. */
main.pl-main:has(.status:not(:empty)) { height: auto; max-height: none; }
