:root {
  --ph-card-border: rgba(212, 175, 55, 0.25);
  --ph-card-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.94) 0%, rgba(250, 251, 255, 0.9) 100%);
  --ph-title: #0f172a;
  --ph-text: #1f2937;
  --ph-muted: #4b5563;
  --ph-subtle: #6b7280;
  --ph-input-bg: rgba(255, 255, 255, 0.95);
  --ph-input-border: rgba(31, 41, 55, 0.18);
  --ph-dropzone-bg: rgba(239, 246, 255, 0.7);
  --ph-dropzone-border: rgba(37, 99, 235, 0.45);
}

[data-theme="dark"] {
  --ph-card-border: rgba(94, 127, 205, 0.38);
  --ph-card-bg: linear-gradient(160deg, rgba(16, 26, 48, 0.92) 0%, rgba(10, 18, 35, 0.88) 100%);
  --ph-title: #edf2ff;
  --ph-text: #d5deef;
  --ph-muted: #a8b8d6;
  --ph-subtle: #8ea1c4;
  --ph-input-bg: rgba(17, 27, 47, 0.92);
  --ph-input-border: rgba(137, 166, 230, 0.26);
  --ph-dropzone-bg: rgba(17, 31, 56, 0.72);
  --ph-dropzone-border: rgba(117, 151, 223, 0.55);
}

.photographer-shell {
  width: min(1200px, calc(100vw - 28px));
  margin: 110px auto 30px;
  padding: 0;
}

.auth-wrap {
  max-width: 560px;
  margin: 0 auto;
}

.auth-card,
.panel-card,
.panel-hero {
  border: 1px solid var(--ph-card-border);
  border-radius: 18px;
  background: var(--ph-card-bg);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.auth-card {
  padding: 26px;
}

.auth-card h1,
.auth-card h2,
.panel-card h3,
.panel-hero h2 {
  margin: 0 0 8px;
  color: var(--ph-title);
}

.auth-card p,
.panel-hero p {
  margin: 0 0 16px;
  color: var(--ph-muted);
  line-height: 1.5;
}

.stack-form {
  display: grid;
  gap: 12px;
}

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

.field span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ph-text);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  border-radius: 11px;
  border: 1px solid var(--ph-input-border);
  background: var(--ph-input-bg);
  padding: 10px 12px;
  font-size: 0.92rem;
  color: var(--ph-title);
}

.field textarea {
  resize: vertical;
}

.forgot-btn {
  margin-top: 10px;
}

.feedback {
  min-height: 22px;
  margin: 8px 0 0;
  font-size: 0.88rem;
  color: var(--ph-text);
  word-break: break-word;
}

.muted {
  color: var(--ph-subtle);
  font-size: 0.78rem;
}

.panel-hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #0e224b 0%, #1d3f85 55%, #2557bb 100%);
  color: #f3f7ff;
}

.panel-hero h2,
.panel-hero .hero-kicker,
.panel-hero .hero-meta {
  color: #f3f7ff;
}

.panel-hero p {
  color: #dce8ff;
  margin: 8px 0 0;
}

.hero-kicker {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.8;
}

.hero-meta {
  align-self: flex-start;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.panel-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.panel-card {
  padding: 18px;
}

.panel-card-wide {
  grid-column: 1 / -1;
}

.album-picker {
  display: grid;
  gap: 6px;
  grid-template-columns: 1fr;
  border: 1px solid var(--ph-input-border);
  border-radius: 12px;
  padding: 10px;
  background: var(--ph-input-bg);
}

@media (min-width: 860px) {
  .album-picker {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.album-option {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--ph-text);
  cursor: pointer;
  text-align: left;
  justify-content: flex-start;
  width: 100%;
}

.album-option:hover {
  background: rgba(37, 99, 235, 0.08);
}

.album-option input {
  margin: 0;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  accent-color: #10735c;
}

.album-dropdown-empty {
  grid-column: 1 / -1;
  padding: 10px;
  border-radius: 10px;
  color: var(--ph-subtle);
  font-size: 0.84rem;
}

[data-theme="dark"] .album-option:hover {
  background: rgba(117, 151, 223, 0.16);
}

.share-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(37, 99, 235, 0.12), rgba(20, 184, 166, 0.12));
}

.share-card .token-code {
  margin: 10px 0;
  border-radius: 12px;
  background: #0f172a;
  color: #f8fafc;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 12px;
}

.share-actions {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.share-actions .btn {
  width: 100%;
}

.dropzone {
  border: 1.5px dashed var(--ph-dropzone-border);
  border-radius: 14px;
  padding: 14px;
  background: var(--ph-dropzone-bg);
  display: grid;
  gap: 10px;
  text-align: center;
}

.dropzone.dragover {
  border-color: #0f8a4d;
  background: rgba(220, 252, 231, 0.85);
}

.dropzone p {
  margin: 4px 0 0;
  color: var(--ph-muted);
}

.dropzone-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--ph-text);
}

.files-info {
  border: 1px solid var(--ph-input-border);
  border-radius: 10px;
  background: var(--ph-input-bg);
  padding: 10px;
  font-size: 0.84rem;
  color: var(--ph-text);
  max-height: 120px;
  overflow: auto;
}

.users-list {
  margin-top: 12px;
  border: 1px solid var(--ph-input-border);
  border-radius: 10px;
  background: var(--ph-input-bg);
  padding: 10px;
  font-size: 0.82rem;
  color: var(--ph-text);
}

.users-list ul {
  margin: 8px 0 0;
  padding-left: 16px;
}

.theme-switch {
  border-radius: 999px;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  color: var(--text-primary);
  padding: 8px 14px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.theme-switch:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-light);
}

@media (max-width: 980px) {
  .photographer-shell {
    width: calc(100vw - 16px);
    margin-top: 98px;
  }

  .panel-hero {
    flex-direction: column;
  }

  .hero-meta {
    white-space: normal;
  }

  .panel-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .auth-card,
  .panel-card,
  .panel-hero {
    padding: 14px;
    border-radius: 14px;
  }

  .dropzone-actions {
    flex-direction: column;
  }

  .dropzone-actions .btn {
    width: 100%;
  }
}
