/* Login + Create company pages (billing portal) */
body { background: #e9edf3; }
[hidden] { display: none !important; }
.pt-header { background: linear-gradient(150deg, #02070f 0%, #0b2545 70%, #13315c 100%); color: var(--white); padding: 1.4rem 1rem 3.6rem; position: relative; overflow: hidden; }
.pt-header::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 70% 90% at 15% 0%, rgba(46, 134, 193, .35) 0%, transparent 65%); }
.pt-header > * { position: relative; }
.pt-in { max-width: 980px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.pt-home { color: var(--white); text-decoration: none; font-weight: 800; font-size: 1.05rem; display: inline-flex; align-items: center; gap: .5rem; }
.pt-home img { width: 28px; height: 28px; }
.pt-nav { display: flex; gap: .5rem; flex-wrap: wrap; }
.pt-nav a { color: var(--white); text-decoration: none; font-size: .85rem; font-weight: 700; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); border-radius: 8px; padding: .45rem .9rem; min-height: 38px; display: inline-flex; align-items: center; }
.pt-nav a:hover { background: rgba(255, 255, 255, .18); }
.pt-title { max-width: 980px; margin: 1.6rem auto 0; }
.pt-title .k { font-size: .7rem; font-weight: 800; letter-spacing: .24em; text-transform: uppercase; color: var(--accent-lt); }
.pt-title h1 { font-size: clamp(1.45rem, 4.5vw, 2.1rem); font-weight: 800; margin-top: .25rem; line-height: 1.2; }
.pt-title p { color: rgba(255, 255, 255, .7); font-size: .92rem; margin-top: .4rem; max-width: 620px; }
.pt-wrap { max-width: 980px; margin: -2.2rem auto 0; padding: 0 1rem 3rem; position: relative; }
.pt-card { background: var(--white); border-radius: 18px; box-shadow: 0 10px 40px rgba(11, 37, 69, .12); padding: 1.6rem 1.4rem; }
.pt-card.narrow { max-width: 460px; margin: 0 auto; }
.pt-card h2 { font-size: 1.25rem; font-weight: 800; color: var(--navy); margin-bottom: .35rem; }
.pt-card .lead { font-size: .88rem; color: var(--grey-dk); margin-bottom: 1.2rem; line-height: 1.55; }
.pt-card h3 { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--navy-mid); margin: 1.5rem 0 .9rem; padding-top: 1.2rem; border-top: 1.5px dashed rgba(11, 37, 69, .16); }
.pt-card h3:first-of-type { margin-top: .4rem; padding-top: 0; border-top: 0; }
.pt-card .form-group label .hint { font-weight: 500; color: var(--grey-dk); font-size: .76rem; margin-left: .25rem; }
.req { color: var(--red); }
.step { display: inline-flex; width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--navy); color: var(--white); font-size: .78rem; font-weight: 800; align-items: center; justify-content: center; margin-right: .45rem; letter-spacing: 0; }
.co-name { margin-top: .4rem; font-size: .82rem; font-weight: 700; min-height: 1.2em; color: var(--grey-dk); }
.co-name.ok { color: var(--green); } .co-name.bad { color: var(--red); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: -.3rem 0 1rem; }
.chip { border: 1.5px solid var(--grey-lt); background: var(--off-white); color: var(--navy); border-radius: 999px; padding: .35rem .8rem; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; min-height: 36px; }
.chip:hover, .chip.on { border-color: var(--accent); color: var(--accent); background: var(--accent-pale); }
.tick { font-size: .78rem; font-weight: 700; margin-top: .35rem; min-height: 1.1em; color: var(--grey-dk); }
.tick.ok { color: var(--green); } .tick.bad { color: var(--red); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 4.6rem !important; }
.pw-eye { position: absolute; right: .4rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--accent); font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; padding: .5rem; min-height: 40px; }
.codebox { display: flex; gap: .4rem; }
.codebox input { flex: 1; min-width: 0; text-transform: uppercase; }
.mini { border: 1.5px solid var(--grey-lt); background: var(--white); color: var(--navy); border-radius: 8px; padding: .4rem .8rem; font: inherit; font-size: .8rem; font-weight: 700; cursor: pointer; min-height: 46px; white-space: nowrap; }
.mini:hover { border-color: var(--accent); color: var(--accent); }
.big-btn { width: 100%; font-size: 1.05rem; padding: 1rem; min-height: 54px; margin-top: .4rem; }
.msg { margin-top: 1rem; font-size: .88rem; font-weight: 600; line-height: 1.55; border-radius: 10px; padding: .75rem 1rem; display: none; word-break: break-word; }
.msg.show { display: block; }
.msg.err { background: var(--red-pale); color: #7b1d13; border-left: 4px solid var(--red); }
.msg.ok { background: var(--green-pale); color: #0f4d2e; border-left: 4px solid var(--green); }
.msg.info { background: var(--accent-pale); color: var(--navy-mid); border-left: 4px solid var(--accent); }
.alt { text-align: center; margin-top: 1.3rem; font-size: .9rem; color: var(--grey-dk); }
.alt a { font-weight: 800; }
.agree { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; line-height: 1.5; color: var(--navy); margin: 1rem 0 .3rem; }
.agree input { width: 20px; height: 20px; margin-top: .1rem; flex: none; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.done-code { font-size: 2rem; font-weight: 800; letter-spacing: .12em; color: var(--navy); background: var(--accent-pale); border: 2px dashed var(--accent); border-radius: 14px; text-align: center; padding: .8rem; margin: 1rem 0; }
.done-btns { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-top: 1rem; }
.done-btns .btn { justify-content: center; min-height: 52px; }
.continue { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; background: var(--green-pale); border-left: 4px solid var(--green); border-radius: 10px; padding: .7rem 1rem; margin-bottom: 1.1rem; font-size: .88rem; color: #0f4d2e; font-weight: 600; }
.pt-foot { text-align: center; font-size: .78rem; color: var(--grey-dk); margin-top: 1.6rem; line-height: 1.7; }
@media (max-width: 560px) {
  .pt-card { padding: 1.3rem 1rem; }
  .done-btns { grid-template-columns: 1fr; }
}
.pt-card .form-group > label { justify-content: flex-start; align-items: center; gap: .3rem; }
.pt-card .form-group > label .hint { margin-left: auto; text-transform: none; letter-spacing: 0; }
.pt-card .form-group > label .req { margin-right: auto; }
.pt-card .form-group > label .req + .hint { margin-left: .4rem; }
