@import url("../assets/css/shared.css");

header {
  padding: 32px 36px 0;
}

.manage-showcase {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 104px 32px 40px;
  background:
    linear-gradient(135deg, rgba(92, 80, 68, 0.5), rgba(92, 80, 68, 0.22)),
    url("/images/salon/salon-background.jpg") center / cover no-repeat;
}

.manage-layout {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
}

.manage-hero,
.manage-panel {
  color: #fffaf4;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: rgba(255, 244, 231, 0.8);
}

.manage-hero h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 0.95;
  font-weight: 500;
}

.manage-copy {
  margin: 18px 0 0;
  max-width: 56ch;
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.65;
  color: rgba(255, 244, 231, 0.92);
}

.manage-panel {
  display: grid;
  gap: 20px;
  padding: clamp(24px, 3vw, 34px);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(105, 92, 81, 0.44);
  box-shadow: 0 24px 48px rgba(34, 27, 22, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.panel-header,
.portal-help,
.login-form,
.editor-shell,
.admin-shell {
  display: grid;
  gap: 14px;
}

.login-form[hidden],
.editor-shell[hidden],
.admin-shell[hidden] {
  display: none !important;
}

.panel-header h2,
.login-form h3,
.editor-shell h3,
.admin-shell h3,
.portal-help h3 {
  margin: 0;
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  font-weight: 500;
}

.panel-note,
.editor-subtitle,
.admin-subtitle,
.portal-help li,
.field-help,
.form-message {
  color: rgba(255, 244, 231, 0.84);
  font-size: 1rem;
  line-height: 1.55;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.95rem;
  color: rgba(255, 244, 231, 0.84);
}

.field input,
.field textarea,
.field-select {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 250, 245, 0.14);
  color: #fffaf4;
  padding: 14px 16px;
  font-size: 1rem;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field-select:focus-visible {
  outline: 2px solid #fffaf4;
  outline-offset: 2px;
}

.field-select option {
  color: #221c18;
}

.form-actions,
.editor-header {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 1rem;
  cursor: pointer;
}

.primary-button {
  background: #fffaf4;
  color: #221c18;
}

.secondary-button {
  background: rgba(255, 250, 245, 0.14);
  color: #fffaf4;
}

.primary-button:hover,
.primary-button:focus-visible {
  background: #ffffff;
}

.secondary-button:hover,
.secondary-button:focus-visible {
  background: rgba(255, 250, 245, 0.22);
}

.primary-button:focus-visible,
.secondary-button:focus-visible {
  outline: 2px solid #fffaf4;
  outline-offset: 2px;
}

.editor-fields {
  display: grid;
  gap: 18px;
}

.admin-shell {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-reset-form .form-actions {
  margin-top: 8px;
}

.portal-help {
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-help ul {
  padding-left: 20px;
  display: grid;
  gap: 8px;
}

.portal-help code {
  font-family: monospace;
  font-size: 0.95em;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .manage-panel {
    background: rgba(100, 86, 74, 0.86);
  }
}

@media (max-width: 1024px) {
  .manage-showcase {
    padding: 96px 24px 32px;
    background:
      linear-gradient(135deg, rgba(92, 80, 68, 0.5), rgba(92, 80, 68, 0.22)),
      url("/images/salon/salon-background-mobile.jpg") center / cover no-repeat;
  }

  .manage-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  header {
    padding: 24px 20px 0;
  }

  .manage-showcase {
    padding: 84px 16px 20px;
  }

  .manage-panel {
    border-radius: 22px;
  }
}
