
:root{--tm-red:#d70812;--tm-red-dark:#9d050c;--ink:#151515;--muted:#666;--card:rgba(255,255,255,.97)}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;color:var(--ink)}
body.pms-login-page{min-height:100vh;background:#2c1713 url('login-bg.jpg?v=0063') center center/cover no-repeat fixed;position:relative;overflow-x:hidden}
.pms-login-overlay{position:fixed;inset:0;background:radial-gradient(circle at center, rgba(255,255,255,.08), rgba(255,255,255,0) 38%),linear-gradient(180deg,rgba(18,5,4,.14),rgba(18,5,4,.28) 60%,rgba(18,5,4,.46));pointer-events:none}
.pms-login-shell{position:relative;z-index:1;min-height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:22px 18px 18px}
.pms-login-branding{width:min(700px,92vw);display:flex;flex-direction:column;align-items:center;margin-bottom:8px}
.pms-logo-backdrop{display:flex;align-items:center;justify-content:center;padding:0;background:none;box-shadow:none;border-radius:0;backdrop-filter:none;-webkit-backdrop-filter:none}
.pms-login-logo{display:block;width:min(560px,72vw);height:auto;max-height:84px;object-fit:contain;filter:none;box-shadow:none}
.pms-system-title{width:100%;display:grid;grid-template-columns:1fr auto 1fr;gap:16px;align-items:center;margin-top:10px;color:#161616;text-shadow:0 1px 8px rgba(255,255,255,.7)}
.pms-system-title span{height:2px;background:var(--tm-red);opacity:.95}
.pms-system-title strong{font-size:18px;letter-spacing:.18em;font-weight:700;text-align:center}
.pms-login-card{width:min(500px,92vw);background:var(--card);border:1px solid rgba(255,255,255,.88);border-radius:18px;box-shadow:0 20px 60px rgba(44,11,9,.28);padding:24px 28px 22px;text-align:center}
.pms-lock-badge{width:56px;height:56px;border-radius:50%;display:grid;place-items:center;margin:0 auto 12px;background:rgba(215,8,18,.07)}
.pms-lock-badge svg{width:26px;height:26px;stroke:var(--tm-red);fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pms-login-card h1{font-size:25px;line-height:1.12;margin:0 0 6px;font-weight:800;letter-spacing:-.02em}
.pms-login-subtitle{margin:0 0 18px;color:#5f5f5f;font-size:15px}
.pms-login-form{text-align:left;display:grid;gap:13px}.pms-field{display:grid;gap:6px}.pms-field-label{font-size:12px;font-weight:700;color:#2b2b2b}
.pms-input-wrap{height:52px;border:1px solid #d5d8dc;border-radius:9px;background:#fff;display:flex;align-items:center;box-shadow:inset 0 1px 2px rgba(0,0,0,.02);transition:.18s border,.18s box-shadow}
.pms-input-wrap:focus-within{border-color:rgba(215,8,18,.62);box-shadow:0 0 0 4px rgba(215,8,18,.08)}
.pms-input-wrap>svg{width:20px;height:20px;margin:0 13px;stroke:#3a3a3a;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
.pms-input-wrap input{height:100%;min-width:0;flex:1;border:0;outline:none;background:transparent;font:inherit;font-size:15px;color:#1b1b1b;padding:0 10px 0 0}
.pms-input-wrap input::placeholder{color:#888}.pms-password-toggle{width:46px;height:100%;border:0;background:none;display:grid;place-items:center;cursor:pointer;color:#363636}.pms-password-toggle svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.pms-password-toggle.active{color:var(--tm-red)}
.pms-remember{display:flex;align-items:center;gap:10px;font-size:14px;color:#555;cursor:pointer;user-select:none}.pms-remember input{appearance:none;width:20px;height:20px;border:1.5px solid #bfc3c8;border-radius:5px;background:#fff;display:grid;place-content:center;cursor:pointer}.pms-remember input:checked{background:var(--tm-red);border-color:var(--tm-red)}.pms-remember input:checked:after{content:'✓';color:#fff;font-weight:900;font-size:14px;line-height:1}
.pms-login-button{margin-top:2px;height:54px;border:0;border-radius:9px;background:linear-gradient(180deg,#e10a15,#c9000a);color:#fff;font-size:17px;font-weight:800;display:flex;align-items:center;justify-content:center;gap:10px;cursor:pointer;box-shadow:0 10px 24px rgba(201,0,10,.18);transition:.16s transform,.16s box-shadow,.16s background}.pms-login-button:hover{transform:translateY(-1px);background:linear-gradient(180deg,#eb101b,#c9000a);box-shadow:0 13px 28px rgba(201,0,10,.24)}.pms-login-button:active{transform:none}.pms-login-button svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.pms-login-version{margin:16px 0 0;color:#626262;font-size:13px}
.pms-alert{margin:0 0 15px;padding:12px 14px;border-radius:9px;text-align:left;font-size:14px;border:1px solid rgba(0,0,0,.08);background:#f5f5f5}.pms-alert.error{background:#fff1f1;border-color:#f1bbbb;color:#a20c14}.pms-alert.success{background:#effaf2;color:#176a34}.pms-alert.warning{background:#fff8e6;color:#7f5b00}
.pms-login-footer{margin-top:16px;text-align:center;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.45);font-size:13px;line-height:1.7}.pms-trust-row{display:flex;gap:18px;align-items:center;justify-content:center;font-weight:700;font-size:14px;flex-wrap:wrap;margin-bottom:4px}.pms-trust-row span{display:inline-flex;align-items:center;gap:7px;padding:6px 10px;border-radius:999px;background:rgba(255,255,255,.08);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px)}.pms-trust-row svg{width:16px;height:16px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:none}
@media (max-width:720px){body.pms-login-page{background-position:62% center;background-attachment:scroll}.pms-login-shell{padding:18px 12px 14px}.pms-login-branding{margin-bottom:6px}.pms-login-logo{width:min(430px,82vw);max-height:64px}.pms-system-title{gap:10px;margin-top:8px}.pms-system-title strong{font-size:11px;letter-spacing:.13em}.pms-system-title span{height:1px}.pms-login-card{width:min(450px,94vw);padding:20px 18px 18px;border-radius:16px}.pms-lock-badge{width:50px;height:50px;margin-bottom:10px}.pms-lock-badge svg{width:24px;height:24px}.pms-login-card h1{font-size:23px}.pms-login-subtitle{font-size:14px;margin-bottom:16px}.pms-input-wrap{height:50px}.pms-login-button{height:52px}.pms-login-footer{margin-top:12px;font-size:11px}.pms-trust-row{gap:8px;font-size:12px}.pms-trust-row span{padding:5px 8px}}
@media (max-height:820px) and (min-width:721px){.pms-login-shell{padding-top:14px;padding-bottom:12px}.pms-login-logo{max-height:72px}.pms-system-title{margin-top:8px}.pms-system-title strong{font-size:16px}.pms-login-card{padding-top:20px;padding-bottom:18px}.pms-login-footer{margin-top:12px}}
