/* ===== SERVICE LOGIN PAGE ===== */

.service-login-article {
  min-width: 0;
}

/* ===== HEADER ===== */

.service-login-article .kb-header {
  margin-bottom: 34px;
}

.service-login-article .kb-header h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.05rem, 2.7vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.035em;
  color: #111827;
}

.service-login-article .kb-intro {
  max-width: 760px;
  margin: 20px 0 0;
  color: #536174;
  font-size: 1.02rem;
  line-height: 1.75;
}

.service-login-lead {
  max-width: 820px;
  margin: 18px 0 0;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  color: #475467;
  font-size: 1rem;
  line-height: 1.7;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.035);
}

/* ===== ADMIN EDIT ===== */

.admin-edit-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d8e0e8;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-edit-link:hover,
.admin-edit-link:focus {
  background: #f8fafc;
  color: #12203b;
}

/* ===== SECTIONS ===== */

.service-login-section {
  margin: 0 0 30px;
}

.service-login-section-header {
  margin-bottom: 16px;
}

.service-login-section-header h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  line-height: 1.3;
  font-weight: 700;
  color: #12203b;
}

.service-login-section-header h2::after {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  margin-top: 10px;
  border-radius: 999px;
  background: #e5007d;
}

.service-login-section-desc {
  max-width: 820px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.65;
  color: #667085;
}

/* ===== LIST ===== */

.service-login-list {
  display: grid;
  gap: 14px;
}

/* ===== CARD ===== */

.service-login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  padding: 22px 24px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.service-login-card-main {
  min-width: 0;
}

.service-login-card-title {
  margin: 0 0 8px;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 700;
  color: #12203b;
}

.service-login-card-desc {
  max-width: 760px;
  margin: 0 0 16px;
  font-size: 0.96rem;
  line-height: 1.65;
  color: #667085;
}

/* ===== META jako szybkie pigułki ===== */

.service-login-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.service-login-meta-row {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  max-width: 100%;
  padding: 8px 11px;
  border: 1px solid #e6ebf2;
  border-radius: 999px;
  background: #f8fafc;
}

.service-login-meta-label {
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.2;
  font-weight: 600;
  white-space: nowrap;
}

.service-login-meta-value {
  color: #12203b;
  font-size: 0.86rem;
  line-height: 1.25;
  font-weight: 700;
}

/* delikatne wyróżnienie hasła */

.service-login-meta-row:has(.service-login-meta-label) {
  border-color: #e6ebf2;
}

/* ===== ACTIONS ===== */

.service-login-actions {
  align-self: center;
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 210px;
}

.service-login-actions .action-btn {
  width: 100%;
  min-height: 42px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: none;
}

.service-login-actions .action-btn--primary {
  background: #ffffff;
  color: #1f2a44;
  border: 1px solid #d8e0e8;
}

.service-login-actions .action-btn--primary:hover,
.service-login-actions .action-btn--primary:focus {
  background: #f8fafc;
  color: #12203b;
}

.service-login-actions .action-btn--secondary {
  background: #ffffff;
  color: #e5007d;
  border: 1px solid #f2b6d4;
}

.service-login-actions .action-btn--secondary:hover,
.service-login-actions .action-btn--secondary:focus {
  background: #fff5fa;
  color: #c9006d;
}

/* ===== SIDEBAR jak knowledge / instruction ===== */

.service-login-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-login-sidebar-list li {
  margin: 0;
  border-top: 1px solid #eef2f6;
}

.service-login-sidebar-list li:first-child {
  border-top: 0;
}

.service-login-sidebar-list a {
  position: relative;
  display: block;
  padding: 13px 22px 13px 0;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
  border-left: 0;
}

.service-login-sidebar-list a::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1.25rem;
  line-height: 1;
}

.service-login-sidebar-list a:hover,
.service-login-sidebar-list a:focus {
  background: transparent;
  color: #12203b;
}

/* sidebar help identyczny w duchu reszty */

.kb-sidebar-help {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.kb-sidebar-help-title {
  margin: 0 0 10px;
  font-size: 1rem;
  line-height: 1.3;
  font-weight: 700;
  color: #12203b;
}

.kb-sidebar-help-text {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #667085;
}

.kb-sidebar-help-button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d8e0e8;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  box-shadow: none;
}

.kb-sidebar-help-button::after {
  content: "→";
}

.kb-sidebar-help-button:hover,
.kb-sidebar-help-button:focus {
  background: #fff5fa;
  color: #e5007d;
  border-color: #f2b6d4;
  transform: none;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 1100px) {
  .service-login-card {
    grid-template-columns: 1fr;
  }

  .service-login-actions {
    width: 100%;
    min-width: 0;
  }

  .service-login-actions .action-btn {
    width: auto;
    align-self: flex-start;
  }
}

@media (max-width: 680px) {
  .service-login-lead {
    padding: 16px;
  }

  .service-login-card {
    padding: 20px 18px;
  }

  .service-login-meta {
    display: grid;
    gap: 8px;
  }

  .service-login-meta-row {
    border-radius: 12px;
    align-items: start;
    flex-direction: column;
    gap: 3px;
  }

  .service-login-actions .action-btn {
    width: 100%;
  }
}
/* ===== SERVICE LOGIN TABLE ===== */

.service-login-list,
.service-login-card,
.service-login-card-main,
.service-login-actions,
.service-login-meta {
  all: unset;
}

.service-login-table-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 18px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.service-login-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 860px;
  font-size: 0.94rem;
}

.service-login-table th,
.service-login-table td {
  padding: 16px 18px;
  border-bottom: 1px solid #eef2f6;
  vertical-align: top;
  text-align: left;
}

.service-login-table thead th {
  background: #f8fafc;
  color: #344054;
  font-size: 0.82rem;
  line-height: 1.3;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-login-table tbody th {
  width: 30%;
  color: #12203b;
  font-weight: 700;
}

.service-login-table tbody td {
  color: #475467;
}

.service-login-table tbody tr:last-child th,
.service-login-table tbody tr:last-child td {
  border-bottom: 0;
}

.service-login-name {
  display: block;
  color: #12203b;
  font-weight: 700;
}

.service-login-desc {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 400;
}

.service-login-table a {
  color: #1f2a44;
  font-weight: 650;
  text-decoration: none;
  border-bottom: 1px solid rgba(31, 42, 68, 0.22);
}

.service-login-table a:hover,
.service-login-table a:focus {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

.service-login-instruction-link {
  display: block;
  width: fit-content;
  margin-top: 8px;
}

.service-login-extra {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 0.86rem;
  line-height: 1.45;
}

/* delikatne wyróżnienie typów kont */

.service-login-table td:nth-child(3) {
  color: #344054;
  font-weight: 600;
}

/* sidebar zostaje jak w page/instruction */

.service-login-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-login-sidebar-list li {
  border-top: 1px solid #eef2f6;
}

.service-login-sidebar-list li:first-child {
  border-top: 0;
}

.service-login-sidebar-list a {
  position: relative;
  display: block;
  padding: 13px 22px 13px 0;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.35;
  font-weight: 600;
}

.service-login-sidebar-list a::after {
  content: "›";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 1.25rem;
}

.service-login-sidebar-list a:hover {
  color: #12203b;
}

@media (max-width: 760px) {
  .service-login-table-wrap {
    border-radius: 14px;
  }

  .service-login-table th,
  .service-login-table td {
    padding: 14px;
  }
}

.service-login-table {
  min-width: 720px;
}

.service-login-table tbody th {
  width: 46%;
}

.service-login-table td:nth-child(2) {
  color: #344054;
  font-weight: 600;
}
.service-login-table td:nth-child(3) {
  color: #344054;
  font-weight: 600;
}

.service-login-table-wrap {
  background: #fff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  box-shadow: none;
  overflow-x: auto;
}

.service-login-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.service-login-table th,
.service-login-table td {
  padding: 13px 16px;
  border-bottom: 1px solid #eef2f6;
  text-align: left;
  vertical-align: top;
}

.service-login-table thead th {
  background: #f8fafc;
  color: #667085;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.service-login-table tbody th {
  width: 46%;
  font-weight: 600;
}

.service-login-table tbody td {
  color: #475467;
}

.service-login-table tbody tr:last-child th,
.service-login-table tbody tr:last-child td {
  border-bottom: 0;
}

.service-login-name {
  color: #12203b;
  font-weight: 700;
  text-decoration: none;
}

a.service-login-name {
  border-bottom: 1px solid rgba(31, 42, 68, 0.2);
}

a.service-login-name:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

.service-login-desc,
.service-login-extra {
  display: block;
  margin-top: 4px;
  color: #667085;
  font-size: 0.84rem;
  line-height: 1.45;
  font-weight: 400;
}

.service-login-instruction-link {
  display: block;
  width: fit-content;
  margin-top: 6px;
  color: #344054;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(52, 64, 84, 0.2);
}

.service-login-instruction-link:hover {
  color: #e5007d;
  border-bottom-color: #e5007d;
}

.admin-edit-link {
  display: inline-flex;
  margin-top: 18px;
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #d8e0e8;
  color: #344054;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-edit-link:hover {
  background: #f8fafc;
  color: #12203b;
}
/* ===== SERVICE LOGIN – lżejsza typografia ===== */

.service-login-article .kb-header h1 {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.service-login-section-header h2 {
  font-weight: 600;
  font-size: 1.28rem;
}

.service-login-section-desc,
.service-login-lead {
  font-weight: 400;
}

.service-login-table {
  font-size: 0.9rem;
}

.service-login-table thead th {
  font-weight: 600;
  color: #7a8494;
}

.service-login-table tbody th {
  font-weight: 500;
}

.service-login-name {
  font-weight: 600;
}

.service-login-table tbody td {
  font-weight: 400;
}

.service-login-table td:nth-child(2) {
  font-weight: 500;
}

.service-login-desc,
.service-login-extra,
.service-login-instruction-link {
  font-weight: 400;
}

.kb-sidebar-title,
.kb-sidebar-help-title,
.kb-sidebar-security h3 {
  font-weight: 600;
}

.service-login-sidebar-list a,
.kb-sidebar-help-button,
.admin-edit-link {
  font-weight: 500;
}

/* ===== SERVICE LOGIN – MOBILE / TABLET ===== */

@media (max-width: 1100px) {
  .service-login-article .kb-header h1 {
    font-size: clamp(1.9rem, 5vw, 2.55rem);
  }

  .service-login-table {
    min-width: 680px;
  }
}

@media (max-width: 760px) {
  .service-login-lead {
    padding: 16px;
    border-radius: 14px;
  }

  .service-login-section {
    margin-bottom: 26px;
  }

  .service-login-section-header h2 {
    font-size: 1.18rem;
  }

  .service-login-section-desc {
    font-size: 0.94rem;
  }

  .service-login-table-wrap {
    margin-left: -4px;
    margin-right: -4px;
    border-radius: 14px;
  }

  .service-login-table {
    min-width: 620px;
    font-size: 0.86rem;
  }

  .service-login-table th,
  .service-login-table td {
    padding: 12px 13px;
  }

  .service-login-desc,
  .service-login-extra,
  .service-login-instruction-link {
    font-size: 0.8rem;
  }
}

@media (max-width: 520px) {
  .service-login-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .service-login-table {
    min-width: 560px;
  }

  .service-login-table thead th {
    font-size: 0.72rem;
  }

  .admin-edit-link {
    width: 100%;
  }
}

/* ===== SERVICE LOGIN – final bez zieleni ===== */

.service-login-sidebar-list a:hover {
  background: #f8fafc;
  color: #e5007d;
  border-left-color: #e5007d;
}

.service-login-card {
  border-color: #e6ebf2;
}

.service-login-card-title,
.service-login-section-header h2 {
  color: #122033;
}

.service-login-meta-label {
  color: #1f2a44;
}

/* pomoc w sidebarze */
.kb-sidebar-help {
  background: #ffffff;
  border: 1px solid #e6ebf2;
  border-radius: 16px;
  padding: 20px 22px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.04);
}

.kb-sidebar-help-button {
  width: 100%;
  min-height: 48px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2a44 0%, #e5007d 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 12px 24px rgba(229, 0, 125, 0.16);
}

.kb-sidebar-help-button:hover,
.kb-sidebar-help-button:focus {
  background: linear-gradient(135deg, #14203a 0%, #c9006d 100%);
  color: #ffffff;
  transform: translateY(-1px);
}