/* Authentication and public applications — standalone surfaces. */
.auth-page {
  --auth-bg: #101216;
  --auth-panel: #181B20;
  --auth-border: #2B2F36;
  --auth-text: #F2F3F5;
  --auth-muted: #9298A3;
  --auth-accent: #FF8B4D;
  min-height: 100svh;
  display: grid;
  align-items: center;
  padding: 48px 32px;
  background: var(--auth-bg);
  color: var(--auth-text);
  box-sizing: border-box;
  line-height: 1.5;
}
.auth-page *, .auth-page *::before, .auth-page *::after { box-sizing: border-box; }
.auth-page ::selection { background: #FF8B4D; color: #101216; }
.auth-page svg { width: 22px; height: 22px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.auth-shell { display: grid; grid-template-columns: 1.04fr 1fr; width: min(100%, 1060px); margin: 0 auto; overflow: hidden; border: 1px solid var(--auth-border); border-radius: 16px; background: var(--auth-panel); }
.auth-intro { display: flex; flex-direction: column; min-height: 656px; padding: 42px 44px 30px; border-right: 1px solid var(--auth-border); background: #14171B; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: var(--auth-text); text-decoration: none; font-size: 16px; font-weight: 700; line-height: 1.25; }
.auth-brand:hover { color: var(--auth-text); }
.auth-monogram { position: relative; display: flex; align-items: center; justify-content: center; width: 39px; height: 39px; border: 1px solid #4E4038; border-radius: 9px; color: var(--auth-accent); font-size: 17px; font-weight: 800; letter-spacing: -0.04em; overflow: hidden; }
.auth-monogram > span { position: absolute; height: 2px; width: 17px; bottom: 5px; left: 11px; background: var(--auth-accent); transform: skewX(-25deg); }
.auth-brand-sub { display: block; margin-top: 3px; color: var(--auth-muted); font-size: 11px; font-weight: 450; }
.auth-intro-copy { margin-top: 76px; }
.auth-intro-copy h1 { margin: 0; color: var(--auth-text); font-size: clamp(31px, 3.3vw, 44px); font-weight: 650; line-height: 1.15; letter-spacing: -0.035em; }
.auth-intro-copy h1 span { color: var(--auth-accent); }
.auth-intro-copy p { max-width: 34ch; margin: 22px 0 0; color: #A9AFBA; font-size: 15px; line-height: 1.7; }
.auth-capabilities { display: grid; gap: 18px; margin: 35px 0 40px; padding: 0; list-style: none; }
.auth-capabilities li { display: flex; align-items: center; gap: 12px; color: #C2C6CE; font-size: 13px; }
.auth-capability-icon { display: inline-flex; color: var(--auth-muted); }
.auth-capability-icon svg { width: 19px; height: 19px; }
.auth-intro-footer { margin-top: auto; padding-top: 24px; color: var(--auth-muted); font-size: 12px; }
.auth-intro-footer a { display: inline-flex; align-items: center; gap: 7px; color: #BDC2CA; text-decoration: none; }
.auth-intro-footer a:hover { color: var(--auth-text); }
.auth-intro-footer svg { width: 17px; height: 17px; }
.auth-form-panel { display: flex; flex-direction: column; justify-content: center; padding: 52px 48px; }
.auth-form-heading { margin-bottom: 30px; }
.auth-form-heading h2, .auth-success h2 { margin: 0; font-size: 28px; font-weight: 650; letter-spacing: -0.025em; line-height: 1.25; color: var(--auth-text); }
.auth-form-heading p { margin: 9px 0 0; font-size: 14px; line-height: 1.6; color: #A8AEB8; }
.auth-form { display: grid; gap: 21px; }
.auth-field { display: flex; flex-direction: column; min-width: 0; gap: 8px; }
.auth-field label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin: 0; color: #D8DCE2; font-size: 13px; font-weight: 550; }
.auth-field label > span:not(.auth-required) { color: var(--auth-muted); font-size: 11px; font-weight: 400; }
.auth-field label .auth-required { color: var(--auth-accent); }
.auth-field input, .auth-field select { display: block; width: 100%; min-width: 0; height: 48px; margin: 0; padding: 0 13px; border: 1px solid #373C45; border-radius: 7px; background: #121519; color: var(--auth-text); font-family: inherit; font-size: 14px; line-height: normal; box-shadow: none; outline: none; caret-color: var(--auth-accent); color-scheme: dark; transition: border-color 140ms ease, background-color 140ms ease; }
.auth-field input::placeholder { color: #9299A5; opacity: 1; }
.auth-field input:hover, .auth-field select:hover { border-color: #545B67; }
.auth-field input:focus, .auth-field select:focus { border-color: var(--auth-accent); outline: 2px solid #FF8B4D; outline-offset: 2px; background: #14171C; box-shadow: none; }
.auth-field input:-webkit-autofill { -webkit-text-fill-color: var(--auth-text); -webkit-box-shadow: 0 0 0 1000px #121519 inset; caret-color: var(--auth-accent); }
.auth-password-wrap { position: relative; }
.auth-password-wrap input { padding-right: 49px; }
.auth-password-toggle { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 5px; background: transparent; color: #A8AEB8; cursor: pointer; }
.auth-password-toggle:hover { color: var(--auth-text); background: #252A31; }
.auth-password-toggle svg { width: 19px; height: 19px; }
.auth-password-toggle .auth-eye-closed { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-open { display: none; }
.auth-password-toggle[aria-pressed="true"] .auth-eye-closed { display: block; }
.auth-submit { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; width: 100%; margin-top: 5px; padding: 12px 18px; border: 1px solid var(--auth-accent); border-radius: 7px; background: var(--auth-accent); color: #21150F; font-family: inherit; font-size: 14px; line-height: 1.45; font-weight: 700; text-decoration: none; cursor: pointer; transition: background-color 140ms ease, border-color 140ms ease; }
.auth-submit svg { width: 18px; height: 18px; stroke-width: 1.9; }
.auth-submit:hover { border-color: #FFA372; background: #FFA372; color: #21150F; }
.auth-submit:active { background: #F47C3D; border-color: #F47C3D; }
.auth-submit:disabled { background: #BA7650; border-color: #BA7650; color: #171310; cursor: wait; }
.auth-page button:focus-visible, .auth-page a:focus-visible { outline: 2px solid var(--auth-accent); outline-offset: 4px; }
.auth-help { display: flex; align-items: flex-start; gap: 10px; margin-top: 25px; color: var(--auth-muted); }
.auth-help svg { width: 16px; height: 16px; margin-top: 3px; }
.auth-help p { margin: 0; color: #9DA4B0; font-size: 12px; line-height: 1.7; }
.auth-form-footer { display: flex; flex-direction: column; gap: 7px; margin-top: 31px; padding-top: 24px; border-top: 1px solid var(--auth-border); font-size: 12px; color: #A8AEB8; }
.auth-form-footer a, .auth-text-link { width: fit-content; color: var(--auth-accent); font-size: 13px; font-weight: 550; text-decoration: none; text-underline-offset: 4px; }
.auth-form-footer a:hover, .auth-text-link:hover { color: #FFAC7F; text-decoration: underline; }
.auth-form-footer a span { margin-left: 4px; }
.auth-notice { display: flex; align-items: flex-start; gap: 11px; padding: 14px; margin-bottom: 22px; border: 1px solid #713F40; border-radius: 8px; background: #301E22; color: #FFC3C7; }
.auth-notice > svg { width: 19px; height: 19px; margin-top: 1px; }
.auth-notice strong { display: block; font-size: 13px; font-weight: 600; line-height: 1.4; }
.auth-notice p { margin: 4px 0 0; color: #F2B8BC; font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.auth-shell--apply { grid-template-columns: .88fr 1.12fr; max-width: 1120px; }
.auth-shell--apply .auth-intro { min-height: 726px; }
.auth-shell--apply .auth-intro-copy { margin-top: 73px; }
.auth-shell--apply .auth-intro-copy h1 { font-size: clamp(31px, 3.1vw, 42px); }
.auth-shell--apply .auth-form-panel { padding: 40px 44px; }
.auth-shell--apply .auth-form-heading { margin-bottom: 26px; }
.auth-form--apply { gap: 19px; }
.auth-form-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
.auth-form-row .auth-field label { gap: 4px; }
.auth-field-hint { margin: -3px 0 -1px; color: #A8AEB8; font-size: 12px; line-height: 1.6; }
.auth-apply-note { display: flex; align-items: flex-start; gap: 13px; margin-top: 44px; padding-top: 25px; border-top: 1px solid var(--auth-border); }
.auth-apply-note > svg { width: 20px; height: 20px; margin-top: 1px; color: var(--auth-accent); }
.auth-apply-note h2 { margin: 0; color: #D8DCE2; font-size: 13px; line-height: 1.4; font-weight: 550; }
.auth-apply-note p { max-width: 28ch; margin: 6px 0 0; color: #A8AEB8; font-size: 12px; line-height: 1.7; }
.auth-success { display: flex; align-items: flex-start; flex-direction: column; max-width: 380px; }
.auth-success-icon { display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 28px; border: 1px solid #466653; border-radius: 14px; background: #1E3228; color: #A6DFB7; }
.auth-success-icon svg { width: 26px; height: 26px; stroke-width: 1.9; }
.auth-success > p { margin: 14px 0 0; color: #CDD2DA; font-size: 15px; line-height: 1.7; }
.auth-success > .auth-success-detail { margin-top: 9px; color: #A8AEB8; font-size: 13px; }
.auth-success .auth-submit { margin-top: 32px; }
.auth-success .auth-text-link { margin: 19px auto 0; }
@media (max-width: 920px) {
  .auth-page { padding: 28px 24px; }
  .auth-intro { padding: 34px 29px 26px; }
  .auth-form-panel, .auth-shell--apply .auth-form-panel { padding: 36px 30px; }
  .auth-intro-copy h1, .auth-shell--apply .auth-intro-copy h1 { font-size: 34px; }
  .auth-form-row { grid-template-columns: 1fr; gap: 19px; }
}
@media (max-width: 700px) {
  .auth-page { display: block; min-height: 100svh; padding: 0; }
  .auth-shell, .auth-shell--apply { display: flex; flex-direction: column; width: 100%; border: 0; border-radius: 0; }
  .auth-intro, .auth-shell--apply .auth-intro { min-height: 0; padding: 27px 26px 31px; border-right: 0; border-bottom: 1px solid var(--auth-border); }
  .auth-brand { font-size: 15px; }
  .auth-monogram { width: 35px; height: 35px; font-size: 15px; }
  .auth-monogram > span { width: 15px; left: 10px; }
  .auth-intro-copy, .auth-shell--apply .auth-intro-copy { margin-top: 32px; }
  .auth-intro-copy h1, .auth-shell--apply .auth-intro-copy h1 { font-size: 32px; line-height: 1.17; }
  .auth-intro-copy p { max-width: 44ch; margin-top: 15px; font-size: 14px; line-height: 1.65; }
  .auth-capabilities, .auth-apply-note { display: none; }
  .auth-intro-footer { display: none; }
  .auth-form-panel, .auth-shell--apply .auth-form-panel { padding: 31px 26px 35px; }
  .auth-form-heading h2, .auth-success h2 { font-size: 25px; }
  .auth-form-heading { margin-bottom: 25px; }
  .auth-form-heading p { font-size: 13px; }
  .auth-field input, .auth-field select { font-size: 16px; }
  .auth-help { margin-top: 23px; }
  .auth-form-footer { margin-top: 27px; }
  .auth-form-row { grid-template-columns: 1fr 1fr; }
  .auth-form-row .auth-field label { font-size: 12px; }
  .auth-form-row .auth-field label > span { flex-basis: 100%; }
  .auth-form-row .auth-field { gap: 7px; }
  .auth-form-row .auth-field input { font-size: 14px; }
  .auth-success { min-height: 355px; justify-content: center; }
}
@media (max-width: 370px) {
  .auth-intro, .auth-shell--apply .auth-intro { padding-left: 21px; padding-right: 21px; }
  .auth-form-panel, .auth-shell--apply .auth-form-panel { padding-left: 21px; padding-right: 21px; }
  .auth-intro-copy h1, .auth-shell--apply .auth-intro-copy h1 { font-size: 29px; }
  .auth-form-row { grid-template-columns: 1fr; }
  .auth-form-row .auth-field label > span { flex-basis: auto; }
}
@media (prefers-reduced-motion: reduce) { .auth-page *, .auth-page *::before, .auth-page *::after { scroll-behavior: auto; transition: none; } }
/* The supplied Polska Energia mark is the single source of truth for public entry points. */
.auth-logo { width: 48px; height: 48px; flex: 0 0 48px; object-fit: contain; object-position: center; }
.auth-logo--full { width: 170px; height: 92px; object-fit: contain; object-position: left center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
