.ostrzalnia-registration-consents { margin: 1rem 0; }
.ostrzalnia-registration-consents button { min-height: 44px; }
.ostrzalnia-registration-consents button[hidden] { display: none; }
.ostrzalnia-registration-consents p { margin: .5rem 0 0; color: #5f6a72; font-size: .875rem; }
.ostrzalnia-account-privacy { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid #dfe4e7; }
.ostrzalnia-account-privacy h2 { font-size: 1.25rem; }
.ostrzalnia-account-empty-history { margin-top: 1rem; }
.ostrzalnia-account-link-copy { display: flex; flex-direction: column; min-width: 0; }
.ostrzalnia-account-link-copy small { color: #5f6a72; font-size: .75rem; }

/*
 * Logowanie, rejestracja i hasło: jedna wyśrodkowana kolumna (.os-auth).
 * Reguły zaczynają się od #wrapper tam, gdzie muszą wygrać z ogólnymi stylami przycisków i pól sklepu.
 */
.os-auth { width: 100%; max-width: 32.25rem; margin: 0 auto; padding: .25rem 0 1rem; color: #475569; }
.os-auth__card { padding: 1.25rem 1rem 1.5rem; border: 1px solid var(--os-line, #e2e8f0); border-radius: 1rem; background: #fff; }
.os-auth__title { margin: 0 0 .5rem; color: var(--os-ink, #0f172a); font-size: 1.75rem; font-weight: 700; line-height: 1.2; overflow-wrap: anywhere; }
.os-auth__lead { margin: 0 0 1.25rem; font-size: 1rem; line-height: 1.5; overflow-wrap: anywhere; }
.os-auth__title + .ostrzalnia-google-auth, .os-auth__title + .os-auth__alert, .os-auth__title + .os-auth__form { margin-top: 1.25rem; }

.os-auth__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; margin: 0; }
.os-auth__legend { margin: 0 0 -.25rem; color: #64748b; font-size: .875rem; }
.os-auth__field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .375rem; min-width: 0; margin: 0; padding: 0; border: 0; }
.os-auth__label { float: none; width: auto; margin: 0; padding: 0; color: var(--os-ink, #0f172a); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.os-auth__mark { margin-left: .2rem; color: #b42318; font-weight: 700; }
.os-auth__optional { color: #64748b; font-size: .875rem; font-weight: 400; white-space: nowrap; }
.os-auth__hint { margin: 0; color: #475569; font-size: .875rem; line-height: 1.45; }
.os-auth__errors { margin: 0; padding: 0; list-style: none; color: #b42318; font-size: .875rem; font-weight: 700; line-height: 1.4; }

#wrapper .os-auth .form-control {
  min-height: 3rem; padding-block: .625rem; border: 1px solid #94a3b8; border-radius: .75rem;
  background-color: #fff; color: var(--os-ink, #0f172a); font-size: 1rem; line-height: 1.4; box-shadow: none;
}
#wrapper .os-auth .form-control:focus { border-color: #b45a0d; box-shadow: 0 0 0 3px rgb(245 131 31 / .3); outline: 0; }
#wrapper .os-auth .form-control[aria-invalid='true'], #wrapper .os-auth .was-validated .form-control:invalid { border-color: #b42318; }
#wrapper .os-auth .form-control[readonly] { background-color: var(--os-soft, #f8fafc); }

/* Hasło z przełącznikiem podglądu: pole i przycisk stoją obok siebie jak jedno pole. */
.os-auth__password { display: flex; flex-wrap: nowrap; align-items: stretch; width: 100%; }
#wrapper .os-auth .os-auth__password .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; border-radius: .75rem 0 0 .75rem; }
#wrapper .os-auth .os-auth__password .form-control:focus { z-index: 2; }
.os-auth__toggle {
  display: grid; place-items: center; flex: 0 0 3rem; width: 3rem; min-height: 3rem; margin: 0 0 0 -1px; padding: 0;
  border: 1px solid #94a3b8; border-radius: 0 .75rem .75rem 0; background: #fff; color: var(--os-ink, #0f172a);
  cursor: pointer; appearance: none;
}
.os-auth__toggle:hover { background: var(--os-soft, #f8fafc); }
#wrapper .os-auth .os-auth__toggle:focus-visible { z-index: 3; outline: 3px solid #b45a0d; outline-offset: -3px; }
.os-auth__toggle .material-icons { font-size: 1.375rem; line-height: 1; }
.os-auth [data-ps-target='password-feedback-target']:empty { display: none; }
.os-auth [data-ps-ref='password-feedback-container'] { margin: .25rem 0 0 !important; font-size: .875rem; }
.os-auth [data-ps-ref='password-feedback-container'] p { margin: 0 0 .25rem; }

.os-auth__forgot { margin: -.5rem 0 -.25rem; text-align: right; }
.os-auth__forgot a, .os-auth__back a, .os-auth__note-links a {
  display: inline-flex; align-items: center; min-height: 44px; color: #94470c; font-weight: 700;
  text-decoration: underline; text-underline-offset: .2em;
}
.os-auth__forgot a:hover, .os-auth__back a:hover, .os-auth__note-links a:hover { color: var(--os-ink, #0f172a); }
.os-auth__back { margin: .75rem 0 -.5rem; text-align: center; }

#wrapper .os-auth .os-auth__submit, #wrapper .os-auth .os-auth__secondary {
  display: flex; align-items: center; justify-content: center; width: 100%; padding: .75rem 1.25rem;
  font-size: 1.0625rem; line-height: 1.3; text-align: center; white-space: normal;
}
#wrapper .os-auth .os-auth__submit { min-height: 3.25rem; }
#wrapper .os-auth .os-auth__secondary { min-height: 3rem; background: #fff; font-size: 1rem; }

.os-auth__switch { display: grid; gap: .75rem; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--os-line, #e2e8f0); }
.os-auth__switch p { margin: 0; color: var(--os-ink, #0f172a); font-weight: 700; }
.os-auth__switch--inline { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0 .5rem; margin-top: 1.25rem; padding-top: .75rem; }
.os-auth__switch--inline p { font-weight: 400; color: #475569; }
.os-auth__switch--inline a { display: inline-flex; align-items: center; min-height: 44px; color: #94470c; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.os-auth__switch--inline a:hover { color: var(--os-ink, #0f172a); }

.os-auth__alert { margin: 0 0 1rem; padding: .875rem 1rem; border: 1px solid #fecaca; border-left: 4px solid #b42318; border-radius: .75rem; background: #fef2f2; color: #7a271a; overflow-wrap: anywhere; }
.os-auth__alert p { margin: 0; line-height: 1.45; }
.os-auth__alert p + p { margin-top: .375rem; }
.os-auth__alert--success { border-color: #bbf7d0; border-left-color: #15803d; background: #f0fdf4; color: #14532d; }

/* Zgody: wymagane przed dobrowolnymi, cały wiersz jest celem dotyku. */
#wrapper .os-auth .os-auth__consents { min-width: 0; margin: .25rem 0 0; padding: 1rem; border: 1px solid var(--os-line, #e2e8f0); border-radius: 1rem; background: var(--os-soft, #f8fafc); }
.os-auth__consents-title { float: left; width: 100%; margin: 0 0 .5rem; padding: 0; color: var(--os-ink, #0f172a); font-size: 1rem; font-weight: 700; line-height: 1.35; }
.os-auth__consents-all { display: flex; flex-wrap: wrap; align-items: center; gap: .375rem .75rem; clear: left; margin-bottom: .25rem; }
#wrapper .os-auth .os-auth__select-all { min-height: 44px; padding: .5rem .875rem; background: #fff; font-size: .9375rem; }
.os-auth__consents-hint { color: #64748b; font-size: .8125rem; line-height: 1.4; }
.os-auth__check { display: grid; grid-template-columns: 1.5rem minmax(0, 1fr); column-gap: .75rem; align-items: start; min-height: 44px; padding: .625rem 0; }
.os-auth__check + .os-auth__check { border-top: 1px solid var(--os-line, #e2e8f0); }
.os-auth__check-input { width: 1.5rem; height: 1.5rem; margin: 0; accent-color: #bd5b08; cursor: pointer; }
.os-auth__check-input:focus-visible { outline: 3px solid #b45a0d; outline-offset: 2px; }
.os-auth__check-label { margin: 0; color: #334155; font-size: .9375rem; line-height: 1.5; cursor: pointer; overflow-wrap: anywhere; }
.os-auth__check-description { display: block; margin-top: .125rem; color: #64748b; font-size: .8125rem; line-height: 1.45; }
.os-auth__check-description em { font-style: normal; }
.os-auth__check .os-auth__errors { grid-column: 2; margin-top: .25rem; }
#wrapper .os-auth .os-auth__consents-links { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1rem; margin: .25rem 0 -.375rem; padding-top: .25rem; border-top: 1px solid var(--os-line, #e2e8f0); color: #475569; font-size: .875rem; line-height: 1.4; }
.os-auth__consents-links a { display: inline-flex; align-items: center; min-height: 44px; color: #94470c; font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.os-auth__consents-links a:hover { color: var(--os-ink, #0f172a); }

/* Zwrot grzecznościowy i inne pola wyboru jednej opcji. */
.os-auth__choices-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.os-auth__choice { display: inline-flex; align-items: center; gap: .5rem; min-height: 44px; margin: 0; padding: 0 .875rem; border: 1px solid #94a3b8; border-radius: .75rem; background: #fff; color: var(--os-ink, #0f172a); cursor: pointer; }
.os-auth__choice input { width: 1.25rem; height: 1.25rem; margin: 0; accent-color: #bd5b08; }

/* Zlecenie ostrzenia nie wymaga konta. */
.os-auth__note { margin-top: 1rem; padding: 1rem 1rem .5rem; border: 1px solid #fed7aa; border-radius: 1rem; background: #fff7ed; color: #475569; }
.os-auth__note-title { margin: 0 0 .25rem; color: var(--os-ink, #0f172a); font-weight: 700; line-height: 1.35; }
.os-auth__note-text { margin: 0; font-size: .9375rem; line-height: 1.5; }
.os-auth__note-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin: .25rem 0 0; padding: 0; list-style: none; }

@media (min-width: 576px) {
  .os-auth { padding: .75rem 0 2rem; }
  .os-auth__card { padding: 2rem 2rem 2.25rem; }
  .os-auth__title { font-size: 2rem; }
  .os-auth__note { padding: 1.125rem 1.5rem .625rem; }
}
