.csa-shell {
  max-width: 520px;
  margin: 0 auto;
}

.csa-auth-tabs-wrap {
  width: 100%;
}

.csa-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
  padding: 6px;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.csa-tab {
  min-height: 48px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 600;
  color: #6b7280;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}

.csa-tab.is-active {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
}

.csa-tab-panel {
  display: none;
}

.csa-tab-panel.is-active {
  display: block;
}

.csa-card {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.12);
  border-radius: 22px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.05);
}

.csa-card-head h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.15;
  color: #111827;
}

.csa-card-head p,
.csa-note {
  margin: 0;
  color: #6b7280;
  font-size: 15px;
  line-height: 1.6;
}

.csa-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.csa-form label {
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #374151;
}

.csa-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(17, 24, 39, 0.16);
  background: #fff;
  font-size: 16px;
  color: #111827;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
  box-sizing: border-box;
}

.csa-form input:focus {
  border-color: #111827;
  box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.08);
}

.csa-btn {
  min-height: 52px;
  border-radius: 16px;
  border: 1px solid #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
}

.csa-btn:hover {
  transform: translateY(-1px);
}

.csa-btn-primary {
  background: #111827;
  color: #fff;
  box-shadow: 0 10px 20px rgba(17, 24, 39, 0.15);
}

.csa-btn-primary:hover {
  background: #000;
  color: #fff;
}

.csa-btn-secondary {
  background: #fff;
  color: #111827;
}

.csa-btn-secondary:hover {
  background: #f9fafb;
  color: #111827;
}

.csa-btn-full {
  width: 100%;
  margin-top: 8px;
}

.csa-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  color: #9ca3af;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.csa-divider::before,
.csa-divider::after {
  content: "";
  height: 1px;
  background: rgba(17, 24, 39, 0.12);
  flex: 1;
}

.csa-alert {
  margin-bottom: 18px;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
}

.csa-alert-error {
  background: #fff1f2;
  border: 1px solid #fecdd3;
  color: #be123c;
}

.csa-alert-success {
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
}

.csa-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.csa-social-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}

.csa-social-wrap .nsl-container,
.csa-social-wrap .nsl-container-block,
.csa-social-wrap .nsl-button,
.csa-social-wrap .nsl-button-default {
  width: 100%;
}

.csa-social-wrap .nsl-container,
.csa-social-wrap .nsl-container-block {
  display: flex !important;
  justify-content: center !important;
}

.csa-social-wrap .nsl-button {
  max-width: 100%;
}

@media (max-width: 767px) {
  .csa-shell {
    max-width: 100%;
  }

  .csa-card {
    padding: 22px;
    border-radius: 18px;
  }

  .csa-card-head h3 {
    font-size: 24px;
  }
}


.csa-password-field {
  position: relative;
}

.csa-password-field input {
  padding-right: 110px;
}

.csa-password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #111827;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 8px;
}

.csa-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 6px;
  color: #374151;
  font-size: 14px;
  line-height: 1.5;
  text-transform: none !important;
  letter-spacing: normal !important;
}

.csa-checkbox input {
  width: 18px;
  min-height: 18px;
  height: 18px;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 5px;
  flex: 0 0 18px;
}


.csa-form-meta {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.csa-forgot-link {
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  text-decoration: none;
}

.csa-forgot-link:hover {
  text-decoration: underline;
}

.csa-alert-badge {
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
}
