/* BricksIndex v59 - czytelne logowanie i rejestracja */
:root{
  --auth-blue:#2563eb;
  --auth-blue-2:#1d4ed8;
  --auth-light:#eef6ff;
  --auth-card:#ffffff;
  --auth-text:#0b2447;
  --auth-muted:#52677f;
  --auth-border:#cfe0f5;
  --auth-shadow:0 24px 70px rgba(8,33,63,.12);
}

.auth-page{
  display:grid;
  grid-template-columns:minmax(360px, .92fr) minmax(390px, .78fr);
  gap:24px;
  align-items:stretch;
  padding:40px 0 40px;
}

.auth-visual-card,
.auth-form-card{
  border:1px solid var(--auth-border);
  border-radius:28px;
  box-shadow:var(--auth-shadow);
}

.auth-visual-card{
  position:relative;
  overflow:hidden;
  min-height:440px;
  padding:54px 52px;
  color:#fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(96,165,250,.36), transparent 27%),
    linear-gradient(135deg, #0a2343 0%, #134b93 52%, #1d6fe8 100%);
}

.auth-visual-card::before,
.auth-visual-card::after{
  content:"";
  position:absolute;
  display:block;
  border-radius:24px;
  background:rgba(255,255,255,.12);
  transform:rotate(13deg);
}

.auth-visual-card::before{
  width:150px;
  height:92px;
  right:78px;
  top:78px;
}

.auth-visual-card::after{
  width:160px;
  height:130px;
  left:62px;
  bottom:56px;
  background:rgba(255,255,255,.10);
}

.auth-kicker{
  position:relative;
  z-index:1;
  display:inline-flex;
  align-items:center;
  padding:10px 18px;
  border-radius:999px;
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.28);
  font-size:13px;
  font-weight:900;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:#fff;
}

.auth-visual-card h1{
  position:relative;
  z-index:1;
  max-width:680px;
  margin:28px 0 18px;
  color:#fff !important;
  font-size:clamp(36px, 4.2vw, 64px);
  line-height:1.03;
  letter-spacing:-.045em;
  font-weight:950;
  text-shadow:0 3px 18px rgba(0,0,0,.16);
}

.auth-visual-card p{
  position:relative;
  z-index:1;
  max-width:660px;
  margin:0;
  color:#eef6ff !important;
  font-size:18px;
  line-height:1.7;
  font-weight:700;
}

.auth-simple-list{
  position:relative;
  z-index:1;
  display:grid;
  gap:12px;
  margin-top:30px;
}

.auth-simple-item{
  display:grid;
  gap:4px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:16px;
  background:rgba(255,255,255,.10);
}

.auth-simple-item strong{
  display:block;
  margin:0;
  color:#fff;
  font-size:15px;
  line-height:1.35;
  font-weight:900;
}

.auth-simple-item span{
  margin:0;
  color:#e5eefc !important;
  font-size:13px !important;
  line-height:1.55 !important;
  font-weight:700 !important;
}

.auth-form-card{
  background:rgba(255,255,255,.96);
  padding:44px;
  min-height:440px;
  color:var(--auth-text);
}

.auth-form-head h2{
  margin:0 0 10px;
  color:var(--auth-text) !important;
  font-size:34px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:950;
}

.auth-form-head p{
  margin:0 0 32px;
  color:#304760 !important;
  font-size:17px;
  line-height:1.55;
  font-weight:650;
}

.auth-form{
  display:grid;
  gap:12px;
}

body.bricksindex-new-ui .auth-consent-list{
  display:grid;
  gap:10px !important;
  margin-top:10px !important;
}

body.bricksindex-new-ui .auth-consent-row{
  display:grid !important;
  grid-template-columns:20px minmax(0,1fr) !important;
  gap:12px !important;
  align-items:flex-start !important;
  padding:14px 16px !important;
  margin:0 !important;
  border:1px solid #d9e6f7 !important;
  border-radius:16px !important;
  background:#f8fbff !important;
  cursor:pointer !important;
}

body.bricksindex-new-ui .auth-consent-row input[type=checkbox]{
  appearance:auto !important;
  -webkit-appearance:checkbox !important;
  width:18px !important;
  min-width:18px !important;
  max-width:18px !important;
  height:18px !important;
  min-height:18px !important;
  margin:2px 0 0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:4px !important;
  background:transparent !important;
  box-shadow:none !important;
  outline:none !important;
  justify-self:start !important;
  align-self:start !important;
}

body.bricksindex-new-ui .auth-consent-row span{
  color:#1f3857;
  font-size:14px !important;
  line-height:1.6 !important;
  font-weight:700 !important;
  margin:0 !important;
}

body.bricksindex-new-ui .auth-consent-row small{
  display:inline-block;
  margin-left:6px !important;
  color:#64748b !important;
  font-size:12px !important;
  font-weight:800 !important;
}

body.bricksindex-new-ui .auth-consent-row strong{
  color:#1d4ed8 !important;
}

body.bricksindex-new-ui .auth-form > label{
  display:block;
  margin-top:10px !important;
  color:var(--auth-text) !important;
  font-weight:900 !important;
  font-size:15px !important;
}

body.bricksindex-new-ui .auth-form input:not([type=checkbox]){
  width:100%;
  height:60px !important;
  min-height:60px !important;
  margin-top:8px !important;
  padding:0 18px !important;
  border:1px solid #bfd4ef;
  border-radius:14px;
  background:#fff;
  color:#102946;
  font-size:16px;
  font-weight:600;
  box-sizing:border-box;
  outline:none;
  box-shadow:0 4px 18px rgba(37,99,235,.04) !important;
}

body.bricksindex-new-ui .auth-form input:not([type=checkbox])::placeholder{
  color:#7a8ca4;
  font-weight:500;
}

body.bricksindex-new-ui .auth-form input:not([type=checkbox]):focus{
  border-color:var(--auth-blue);
  box-shadow:0 0 0 4px rgba(37,99,235,.14);
}

.auth-submit{
  width:100%;
  height:60px;
  margin-top:22px;
  border:0;
  border-radius:14px;
  background:linear-gradient(135deg, #2563eb, #1d73e8);
  color:#fff !important;
  font-size:17px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 18px 34px rgba(37,99,235,.22);
}

.auth-submit:hover{
  background:linear-gradient(135deg, #1d4ed8, #0f62d9);
  color:#fff !important;
}

.auth-submit--link{
  display:flex;
  align-items:center;
  justify-content:center;
  text-decoration:none;
  box-sizing:border-box;
}

body.bricksindex-new-ui .auth-page.auth-message-page{
  grid-template-columns:minmax(0,720px) !important;
  justify-content:center !important;
  align-items:start !important;
}

.auth-message-card{
  width:100%;
  box-sizing:border-box;
  overflow:hidden;
  border:1px solid var(--auth-border);
  border-radius:24px;
  background:#fff;
  box-shadow:0 24px 60px rgba(8,45,94,.12);
}

.auth-message-card__hero{
  position:relative;
  padding:clamp(28px,5vw,52px);
  overflow:hidden;
  color:#fff;
  background:
    radial-gradient(circle at 86% 18%,rgba(255,255,255,.18) 0 54px,transparent 55px),
    linear-gradient(135deg,#082f63 0%,#0d58b8 58%,#246ef0 100%);
}

.auth-message-card__hero::after{
  position:absolute;
  right:-32px;
  bottom:-60px;
  width:210px;
  height:150px;
  border-radius:42px;
  background:rgba(255,255,255,.08);
  transform:rotate(18deg);
  content:"";
}

.auth-message-card__meta{
  position:relative;
  z-index:1;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:28px;
}

.auth-message-card__hero .auth-kicker{
  color:#fff;
  border-color:rgba(255,255,255,.42);
  background:rgba(255,255,255,.12);
}

.auth-message-card__icon{
  display:inline-flex;
  flex:0 0 46px;
  width:46px;
  height:46px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,.5);
  border-radius:50%;
  background:rgba(255,255,255,.16);
  color:#fff;
  font-size:24px;
  font-weight:900;
  line-height:1;
}

body.bricksindex-new-ui .auth-message-card__hero h1{
  position:relative;
  z-index:1;
  max-width:580px;
  margin:0;
  color:#fff !important;
  font-size:clamp(32px,5vw,52px);
  line-height:1.04;
  letter-spacing:-.035em !important;
}

.auth-message-card__body{
  display:grid;
  gap:24px;
  padding:clamp(26px,4vw,42px);
}

.auth-message-card__body p{
  max-width:620px;
  margin:0;
  color:var(--auth-muted);
  font-size:16px;
  line-height:1.65;
}

.auth-message-card__actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
}

.auth-message-card__actions .auth-submit{
  width:auto;
  min-width:220px;
  min-height:48px;
  height:auto;
  margin-top:0;
  padding:12px 22px;
}

.auth-message-card--success .auth-message-card__icon{
  border-color:rgba(187,247,208,.72);
  background:rgba(22,163,74,.35);
}

.auth-message-card--error .auth-message-card__icon{
  border-color:rgba(254,202,202,.76);
  background:rgba(220,38,38,.35);
}

@media (max-width:560px){
  .auth-message-card{
    border-radius:18px;
  }

  .auth-message-card__hero,
  .auth-message-card__body{
    padding:24px;
  }

  .auth-message-card__meta{
    margin-bottom:22px;
  }

  .auth-message-card__actions .auth-submit{
    width:100%;
    min-width:0;
  }
}

.auth-small-link{
  justify-self:flex-end;
  color:#1d4ed8;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
}

.auth-small-link:hover{
  text-decoration:underline;
}

.auth-form-assist{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:-4px 0 4px;
  padding:12px 14px;
  border:1px solid #cfe0ff;
  border-radius:16px;
  background:#f6f9ff;
  color:#4a607c;
  font-size:14px;
  font-weight:800;
}

.auth-form-assist .auth-small-link{
  justify-self:auto;
  padding:8px 12px;
  border-radius:999px;
  background:#eaf2ff;
  white-space:nowrap;
}

.auth-secondary-box{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:18px;
  color:#1a3553;
  font-size:16px;
  font-weight:800;
}

.auth-inline-panel{
  margin-top:18px;
  padding:16px 18px;
  border:1px solid #e2ebf8;
  border-radius:16px;
  background:linear-gradient(180deg, #f8fbff 0%, #f2f7ff 100%);
}

.auth-inline-panel strong{
  display:block;
  margin:0 0 8px;
  color:#12335f;
  font-size:15px;
  line-height:1.45;
  font-weight:900;
}

.auth-inline-panel p{
  margin:0;
  color:#536983 !important;
  font-size:14px;
  line-height:1.7;
  font-weight:700;
}

.auth-secondary-box--notice{
  display:grid;
  gap:8px;
  align-items:start;
  padding:16px 18px;
  border:1px solid #d8e8fb;
  border-radius:16px;
  background:#f8fbff;
}

.auth-secondary-box--notice p{
  margin:0;
  color:#425871 !important;
  font-size:14px;
  line-height:1.65;
  font-weight:700;
}

.auth-secondary-box a,
.auth-legal-note a{
  color:#1d4ed8 !important;
  font-weight:950;
  text-decoration:none;
}

.auth-secondary-box a:hover,
.auth-legal-note a:hover{
  text-decoration:underline;
}

.auth-legal-note{
  margin:24px 0 0;
  padding-top:20px;
  border-top:1px solid #dce9f8;
  color:#425871 !important;
  font-size:14px;
  line-height:1.7;
  font-weight:650;
}

.auth-alert{
  margin:0 0 22px;
  padding:14px 16px;
  border-radius:14px;
  color:#7f1d1d;
  background:#fee2e2;
  border:1px solid #fecaca;
  font-weight:800;
}

/* Nadpisanie starych form, jeśli któryś widok użyje wcześniejszych klas */
.auth-grid{
  display:grid !important;
  grid-template-columns:minmax(420px,1fr) minmax(380px,.85fr) !important;
  gap:34px !important;
  padding:72px 0 56px !important;
}
.auth-card,
.auth-info{
  border-radius:26px !important;
  border:1px solid var(--auth-border) !important;
  background:#fff !important;
  color:var(--auth-text) !important;
  box-shadow:var(--auth-shadow) !important;
}
.auth-card{padding:48px !important;}
.auth-info{padding:48px !important;}
.form-stack label{color:var(--auth-text) !important;font-weight:900 !important;}
.form-stack input{height:56px !important;border:1px solid #bfd4ef !important;border-radius:14px !important;padding:0 16px !important;}
.btn.primary,.btn-primary,.button-primary{background:#2563eb !important;color:#fff !important;border-color:#1d4ed8 !important;}

@media (max-width: 980px){
  .auth-page,
  .auth-grid{
    grid-template-columns:1fr !important;
    padding:34px 0 42px !important;
  }
  .auth-visual-card{
    min-height:auto;
    padding:36px 28px;
  }
  .auth-form-card{
    min-height:auto;
    padding:34px 24px;
  }
  .auth-visual-card h1{font-size:38px;}
}

@media (max-width: 560px){
  .auth-visual-card h1{font-size:32px;}
  .auth-visual-card p,.auth-form-head p{font-size:15px;}
  .auth-form-card{padding:28px 18px;}
  .auth-form-head h2{font-size:28px;}
}

.auth-lite-header{
  width:min(1040px, calc(100% - 32px));
  margin:16px auto 0;
  padding:12px 16px;
  border:1px solid #dbe7f6;
  border-radius:20px;
  background:rgba(255,255,255,.92);
  box-shadow:0 16px 36px rgba(15,23,42,.07);
  backdrop-filter:blur(12px);
}

.auth-lite-header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.auth-lite-header__brand{
  display:inline-flex;
  align-items:center;
  gap:12px;
  color:#0a2856 !important;
  font-size:24px;
  font-weight:950;
  text-decoration:none;
}

.auth-lite-header__brand span span{
  color:#2563eb;
}

.auth-lite-header__brand .logo-img{
  width:38px;
  height:38px;
}

.auth-lite-header__actions{
  display:flex;
  align-items:center;
  gap:12px;
}

.auth-lite-header__back{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:0 16px;
  border-radius:999px;
  color:#244163 !important;
  font-size:14px;
  font-weight:900;
  text-decoration:none;
}

.auth-lite-header__back{
  background:#eef5ff;
  color:#1d4ed8 !important;
  border:1px solid #cfe0f8;
  box-shadow:none;
}

.bi-beta-banner--auth{
  border-bottom:0;
}

.bi-beta-banner--auth .bi-beta-banner__inner{
  padding:8px 14px;
}

@media (max-width: 860px){
  .auth-lite-header{
    width:calc(100% - 20px);
    padding:14px;
  }

  .auth-lite-header__inner{
    flex-wrap:wrap;
  }

  .auth-lite-header__actions{
    margin-left:auto;
  }
}

@media (max-width: 560px){
  .auth-lite-header{
    width:calc(100% - 16px);
    margin-top:14px;
    padding:12px;
    border-radius:18px;
  }

  .auth-lite-header__inner{
    gap:12px;
  }

  .auth-lite-header__brand{
    font-size:20px;
    width:100%;
    justify-content:center;
  }
  .auth-lite-header__back{
    min-height:40px;
    padding:0 14px;
    font-size:13px;
  }

  .auth-lite-header__actions{
    width:100%;
    justify-content:center;
    gap:8px;
  }

  .auth-form-assist{
    flex-direction:column;
    align-items:flex-start;
  }
}
