/* Área Restrita PALC — modal login */

.palc-auth-overlay[hidden] {
  display: none !important;
}

.palc-auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 24, 40, 0.55);
  backdrop-filter: blur(2px);
}

.palc-auth-modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px 28px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: #101828;
}

.palc-auth-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: #99a1af;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.palc-auth-close:hover {
  background: #f3f4f6;
  color: #101828;
}

.palc-auth-modal__head {
  margin-bottom: 20px;
  padding-right: 28px;
}

.palc-auth-modal__title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  color: #101828;
}

.palc-auth-modal__subtitle {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.4;
  color: #99a1af;
}

.palc-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid #e5e7eb;
  margin-bottom: 20px;
}

.palc-auth-tab {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 12px 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #99a1af;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}

.palc-auth-tab.is-active {
  color: #101828;
  border-bottom-color: #d2af28;
}

.palc-auth-field {
  display: block;
  margin-bottom: 14px;
}

.palc-auth-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: #101828;
}

.palc-auth-input {
  width: 100%;
  height: 44px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 14px;
  font-family: inherit;
  color: #101828;
  background: #fff;
  box-sizing: border-box;
}

.palc-auth-input:focus {
  outline: none;
  border-color: #d2af28;
  box-shadow: 0 0 0 3px rgba(210, 175, 40, 0.18);
}

.palc-auth-submit {
  width: 100%;
  height: 48px;
  margin-top: 6px;
  border: 0;
  border-radius: 10px;
  background: #000;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.palc-auth-submit:hover {
  background: #1a1a1a;
}

.palc-auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.palc-auth-forgot-wrap {
  margin: 16px 0 0;
  text-align: center;
}

.palc-auth-forgot {
  color: #101828;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.palc-auth-forgot:hover {
  text-decoration: underline;
}

.palc-auth-modal__foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
  text-align: center;
}

.palc-auth-modal__foot p {
  margin: 0;
  font-size: 12px;
  color: #99a1af;
}

.palc-auth-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.palc-auth-alert.is-error {
  background: #fef2f2;
  color: #b42318;
}

.palc-auth-alert.is-success {
  background: #ecfdf3;
  color: #027a48;
}

.palc-auth-panel[hidden] {
  display: none !important;
}

.palc-auth-restricted {
  padding: 48px 24px;
  display: flex;
  justify-content: center;
}

.palc-auth-restricted__card {
  max-width: 420px;
  width: 100%;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 32px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.palc-auth-restricted__card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.palc-auth-restricted__card p {
  margin: 0 0 20px;
  color: #6a7282;
  font-size: 14px;
}

.palc-auth-forgot-page {
  padding: 48px 24px;
  display: flex;
  justify-content: center;
}

.palc-auth-forgot-card {
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 20px;
  padding: 36px 32px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
}

body.palc-auth-open {
  overflow: hidden;
}
