:root {
  --rs-bg: #050505;
  --rs-panel: rgba(16, 16, 16, .92);
  --rs-panel-soft: rgba(18, 18, 18, .76);
  --rs-line: rgba(255, 255, 255, .14);
  --rs-line-warm: rgba(255, 139, 0, .26);
  --rs-orange: #ff8a00;
  --rs-orange-hot: #ff4d00;
  --rs-gold: #ffc400;
  --rs-text: #f5f5f5;
  --rs-muted: #b9b9b9;
  --rs-danger: #ff4d59;
  --rs-success: #37c968;
  --rs-radius: 14px;
  --rs-shadow: 0 22px 70px rgba(0, 0, 0, .58);
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--rs-bg); }

body.storefront-page {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--rs-text);
  font-family: "Segoe UI", Inter, Arial, sans-serif;
  background:
    linear-gradient(rgba(0, 0, 0, .72), rgba(0, 0, 0, .88)),
    url("../multimedia/banner.png") center top / cover fixed no-repeat,
    #050505;
}

body.storefront-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 22%, rgba(255, 129, 0, .08), transparent 32%);
}

a { color: inherit; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.sf-header {
  min-height: 155px;
  display: grid;
  grid-template-columns: 160px minmax(300px, 1fr) 160px;
  align-items: center;
  padding: 14px clamp(18px, 3vw, 38px);
  background: rgba(0, 0, 0, .86);
  border-bottom: 1px solid rgba(255, 139, 0, .42);
}

.sf-logo { display: inline-flex; width: 138px; height: 138px; }
.sf-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px rgba(255, 92, 0, .28)); }

.sf-shop-link {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  min-width: 280px;
  min-height: 58px;
  padding: 14px 30px;
  border-radius: 8px;
  color: white;
  font-weight: 800;
  font-size: 19px;
  text-decoration: none;
  background: linear-gradient(100deg, var(--rs-orange), var(--rs-orange-hot));
  box-shadow: 0 10px 30px rgba(255, 105, 0, .22);
  transition: transform .2s ease, filter .2s ease;
}
.sf-shop-link:hover { transform: translateY(-2px); filter: brightness(1.08); }

.sf-header-actions { justify-self: end; display: grid; gap: 10px; }
.sf-action {
  position: relative;
  min-width: 158px;
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 18px;
  color: var(--rs-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 17px;
  background: rgba(5, 5, 5, .75);
  border: 1px solid var(--rs-line);
  border-radius: 9px;
}
.sf-action-icon { color: var(--rs-orange); font-size: 21px; }
.sf-badge {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rs-orange);
  color: white;
  font-size: 12px;
}

.sf-welcome {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  color: #ffd429;
  font-weight: 800;
  font-size: 18px;
  background: rgba(0, 0, 0, .78);
  border-bottom: 1px solid rgba(255, 139, 0, .36);
}

.sf-main { width: min(650px, calc(100% - 32px)); margin: 38px auto 32px; }
.sf-auth-card {
  padding: clamp(28px, 5vw, 48px);
  background: linear-gradient(145deg, rgba(18,18,18,.96), rgba(8,8,8,.94));
  border: 1px solid var(--rs-line-warm);
  border-radius: var(--rs-radius);
  box-shadow: var(--rs-shadow);
}

.sf-auth-heading { text-align: center; margin-bottom: 34px; }
.sf-auth-emblem {
  width: 76px;
  height: 76px;
  margin: 0 auto 21px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 139, 0, .25);
  border-radius: 50%;
  color: var(--rs-orange);
  font-size: 38px;
  box-shadow: 0 0 28px rgba(255, 139, 0, .17);
}
.sf-auth-heading h1 { margin: 0 0 9px; font-size: clamp(30px, 5vw, 38px); line-height: 1.1; }
.sf-auth-heading h1 span, .sf-accent { color: var(--rs-orange); }
.sf-auth-heading p { margin: 0; color: var(--rs-muted); font-size: 16px; }

.sf-form { display: grid; gap: 14px; }
.sf-field { position: relative; }
.sf-field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--rs-orange);
  font-size: 21px;
  pointer-events: none;
}
.sf-field input {
  width: 100%;
  min-height: 63px;
  padding: 15px 54px;
  color: var(--rs-text);
  caret-color: var(--rs-orange);
  background: rgba(6, 6, 6, .58);
  border: 1px solid var(--rs-line);
  border-radius: 9px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.sf-field input::placeholder { color: #aaa; opacity: 1; }
.sf-field input:focus { border-color: var(--rs-orange); box-shadow: 0 0 0 3px rgba(255, 138, 0, .11); }
.sf-password-toggle {
  position: absolute;
  right: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: 0;
  color: #bbb;
  background: transparent;
  cursor: pointer;
}

.sf-form-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 10px 0 4px; color: var(--rs-muted); font-size: 14px; }
.sf-check { display: inline-flex; align-items: center; gap: 9px; }
.sf-check input { width: 20px; height: 20px; accent-color: var(--rs-orange); }
.sf-text-link { color: var(--rs-orange); text-decoration: none; }
.sf-text-link:hover { text-decoration: underline; }

.sf-primary-button {
  width: 100%;
  min-height: 62px;
  margin-top: 8px;
  border: 0;
  border-radius: 8px;
  color: white;
  background: linear-gradient(100deg, var(--rs-orange), var(--rs-orange-hot));
  box-shadow: 0 12px 30px rgba(255, 95, 0, .2);
  font-size: 18px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.sf-primary-button:hover { transform: translateY(-1px); filter: brightness(1.08); }
.sf-primary-button:disabled { opacity: .65; cursor: wait; }

.sf-benefits-list { list-style: none; display: grid; gap: 9px; padding: 0; margin: 22px 0 3px; color: #ddd; font-size: 14px; }
.sf-benefits-list li::before { content: "✓"; color: var(--rs-orange); margin-right: 10px; border: 1px solid var(--rs-orange); border-radius: 50%; padding: 0 3px; }

.sf-divider { display: flex; align-items: center; gap: 18px; margin: 24px 0; color: #999; font-size: 13px; }
.sf-divider::before, .sf-divider::after { content: ""; flex: 1; height: 1px; background: var(--rs-line); }
.sf-socials { display: grid; gap: 11px; }
.sf-social {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border: 1px solid var(--rs-line);
  border-radius: 8px;
  color: #e9e9e9;
  background: rgba(5, 5, 5, .45);
  font-size: 15px;
}
.sf-social[aria-disabled="true"] { cursor: not-allowed; opacity: .72; }
.sf-google { font-weight: 900; color: #4285f4; font-size: 20px; }
.sf-facebook { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; background: #287be0; color: white; font-weight: 900; }
.sf-switch { margin: 28px 0 0; text-align: center; color: #ddd; }
.sf-switch-icon { color: var(--rs-orange); margin-right: 8px; }
.sf-security-note { margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--rs-line); text-align: center; color: #aaa; font-size: 13px; }
.sf-resend { margin-top: 20px; padding: 17px; display: flex; gap: 14px; align-items: flex-start; background: rgba(255,255,255,.025); border-radius: 8px; color: #bbb; font-size: 13px; line-height: 1.55; }
.sf-resend-icon { color: var(--rs-orange); font-size: 22px; }

.sf-message { margin-bottom: 18px; padding: 13px 15px; border-radius: 8px; text-align: center; font-size: 14px; display: none; }
.sf-message.is-visible { display: block; }
.sf-message.is-success { background: rgba(55, 201, 104, .12); border: 1px solid rgba(55, 201, 104, .42); color: #86e8a8; }
.sf-message.is-error { background: rgba(255, 77, 89, .12); border: 1px solid rgba(255, 77, 89, .42); color: #ff9aa1; }

.sf-trust { width: min(960px, calc(100% - 32px)); margin: 30px auto; padding: 22px 20px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--rs-line); border-radius: 12px; background: rgba(12, 12, 12, .86); }
.sf-trust-item { display: grid; grid-template-columns: 42px 1fr; gap: 10px; align-items: center; padding: 3px 18px; border-right: 1px solid rgba(255,255,255,.08); }
.sf-trust-item:last-child { border-right: 0; }
.sf-trust-icon { color: var(--rs-orange); font-size: 29px; }
.sf-trust-item strong { display: block; font-size: 13px; }
.sf-trust-item small { display: block; margin-top: 5px; color: #a9a9a9; font-size: 12px; }

.sf-footer { padding: 10px 20px 34px; text-align: center; color: #aaa; font-size: 14px; line-height: 1.8; }
.sf-footer strong { color: var(--rs-orange); }

@media (max-width: 760px) {
  .sf-header { grid-template-columns: 110px 1fr 132px; min-height: 135px; padding: 10px 14px; }
  .sf-logo { width: 105px; height: 105px; }
  .sf-shop-link { min-width: 0; min-height: 52px; padding: 12px 20px; font-size: 16px; }
  .sf-action { min-width: 128px; min-height: 48px; padding: 8px 10px; font-size: 15px; }
  .sf-main { margin-top: 25px; }
  .sf-trust { grid-template-columns: repeat(2, 1fr); gap: 18px 0; }
  .sf-trust-item:nth-child(2) { border-right: 0; }
}

@media (max-width: 560px) {
  .sf-header { grid-template-columns: 1fr 145px; grid-template-rows: auto auto; gap: 9px; }
  .sf-logo { grid-row: 1 / 3; }
  .sf-shop-link { grid-column: 2; grid-row: 2; padding: 9px 10px; font-size: 13px; }
  .sf-header-actions { grid-column: 2; grid-row: 1; display: flex; }
  .sf-header-actions .sf-action:last-child { display: none; }
  .sf-action { min-width: 138px; }
  .sf-main { width: min(100% - 20px, 780px); }
  .sf-auth-card { padding: 25px 18px; }
  .sf-field input { min-height: 58px; }
  .sf-form-options { align-items: flex-start; flex-direction: column; }
  .sf-trust { width: min(100% - 20px, 960px); grid-template-columns: 1fr; }
  .sf-trust-item, .sf-trust-item:nth-child(2) { border-right: 0; }
}

/* Google Translate nie może przesuwać layoutu sklepu. */
.goog-te-banner-frame, .goog-te-balloon-frame, .goog-te-menu-frame,
.goog-te-gadget, .goog-te-gadget-icon, .goog-te-gadget-simple,
.goog-tooltip, .skiptranslate, iframe[src*="translate"] { display: none !important; }
body.storefront-page { top: 0 !important; }
