/* ============================================================
   IKS - strony konta (logowanie, rejestracja, reset hasla)
   Split-screen: lewa kolumna marka (fiolet/mint), prawa formularz
   ============================================================ */

/* ---------- Layout split-screen ---------- */
.auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}

/* ---------- Lewa kolumna - panel marki ---------- */
.auth-brand {
  position: relative;
  background:
    linear-gradient(155deg, rgba(113, 0, 255, 0.90) 0%, rgba(51, 0, 122, 0.92) 100%),
    url("../../img/01-hero-zespol.fe4aa3d46090.jpg");
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(40px, 5vw, 72px) clamp(36px, 4.5vw, 64px);
  overflow: hidden;
  min-height: 100vh;
}

.auth-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 110%, rgba(0,246,160,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% -10%, rgba(113,0,255,0.35) 0%, transparent 55%);
  pointer-events: none;
}

.auth-brand-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.auth-brand-top {
  position: relative;
  z-index: 1;
}

.auth-brand-logo {
  height: 36px;
  width: auto;
  display: block;
}

.auth-brand-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 0 24px;
}

.auth-brand-claim {
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 36px;
}

.auth-brand-claim em {
  font-style: normal;
  color: var(--mint);
}

.auth-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.auth-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: rgba(255,255,255,0.90);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.45;
}

.auth-benefit-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0,246,160,0.15);
  border: 1px solid rgba(0,246,160,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.auth-benefit-icon svg {
  width: 17px;
  height: 17px;
  color: var(--mint);
  stroke: var(--mint);
}

.auth-brand-deco {
  position: absolute;
  bottom: -40px;
  right: -60px;
  width: 320px;
  height: auto;
  opacity: 0.06;
  pointer-events: none;
  z-index: 0;
}

.auth-brand-bottom {
  position: relative;
  z-index: 1;
}

.auth-brand-tagline {
  font-size: 12.5px;
  color: rgba(255,255,255,0.45);
  font-weight: 500;
  letter-spacing: 0.03em;
}

/* ---------- Prawa kolumna - formularz ---------- */
.auth-form-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: clamp(40px, 5vw, 72px) clamp(32px, 4vw, 64px);
}

.auth-form-inner {
  width: 100%;
  max-width: 420px;
}

.auth-form-inner .eyebrow {
  margin-bottom: 18px;
  display: inline-flex;
}

.auth-form-inner h1 {
  font-size: clamp(26px, 2.8vw, 34px);
  margin: 0 0 10px;
}

.auth-form-sub {
  color: var(--gray-600);
  font-size: 15px;
  margin-bottom: 30px;
  line-height: 1.55;
}

.auth-form-inner .form {
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.auth-submit {
  margin-top: 4px;
  width: 100%;
  justify-content: center;
}

.auth-links {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
}

.auth-links a {
  color: var(--violet);
  font-weight: 600;
}

.auth-links a:hover {
  text-decoration: underline;
}

/* ---------- Wariant "tylko karta" (done / complete) ---------- */
.auth-simple {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  padding: 48px 24px;
}

.auth-simple-card {
  width: 100%;
  max-width: 460px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 4.5vw, 52px);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.auth-simple-card .eyebrow {
  margin-bottom: 20px;
  display: inline-flex;
}

.auth-simple-card h1 {
  font-size: clamp(26px, 3vw, 32px);
  margin-bottom: 14px;
}

.auth-simple-card p {
  color: var(--gray-600);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 30px;
}

.auth-simple-card .btn {
  width: 100%;
  justify-content: center;
}

.auth-icon-check {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--mint-50);
  border: 1.5px solid rgba(0,246,160,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.auth-icon-check svg {
  width: 26px;
  height: 26px;
  color: #04795a;
  stroke: #04795a;
}

.auth-icon-warn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #fff7e6;
  border: 1.5px solid #ffd591;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
}

.auth-icon-warn svg {
  width: 26px;
  height: 26px;
  color: #ad6800;
  stroke: #ad6800;
}

/* ---------- Animacje reveal ---------- */
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

.auth-form-inner > * {
  animation: authFadeUp 0.45s var(--ease) both;
}

.auth-form-inner > *:nth-child(1) { animation-delay: 0.05s; }
.auth-form-inner > *:nth-child(2) { animation-delay: 0.10s; }
.auth-form-inner > *:nth-child(3) { animation-delay: 0.15s; }
.auth-form-inner > *:nth-child(4) { animation-delay: 0.20s; }
.auth-form-inner > *:nth-child(5) { animation-delay: 0.25s; }

.auth-brand-main > * {
  animation: authFadeUp 0.55s var(--ease) both;
}

.auth-brand-main > *:nth-child(1) { animation-delay: 0.08s; }
.auth-brand-main > *:nth-child(2) { animation-delay: 0.18s; }

/* ---------- Bledy non-field ---------- */
.auth-error-box {
  background: #fff0f3;
  border: 1px solid #ffccd5;
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: #c9184a;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}

.auth-helptext {
  font-size: 12.5px;
  color: var(--gray-600);
  font-weight: 500;
  margin-top: 4px;
}

/* ---------- Ukrywamy globalny header/footer na stronach auth ---------- */
body.auth-layout .site-header,
body.auth-layout .site-footer {
  display: none;
}

/* ---------- Mobile - jedno kolumnowe (<= 900px) ---------- */
@media (max-width: 900px) {
  .auth-page {
    grid-template-columns: 1fr;
    min-height: 100vh;
  }

  .auth-brand {
    display: none;
  }

  .auth-form-col {
    min-height: 100vh;
    padding: 48px 24px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }
}
