﻿:root {
  --bg-top: #eef4ff;
  --bg-bottom: #dbe7ff;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-sub: #4b5563;
  --line: #d4dbea;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Pretendard", "Segoe UI", "Noto Sans KR", sans-serif;
  color: var(--text-main);
  background: linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
  position: relative;
  overflow: hidden;
}

.bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  z-index: 0;
}

.bg-orb-1 {
  width: 360px;
  height: 360px;
  background: rgba(37, 99, 235, 0.18);
  top: -100px;
  left: -80px;
}

.bg-orb-2 {
  width: 280px;
  height: 280px;
  background: rgba(14, 165, 233, 0.22);
  bottom: -70px;
  right: -50px;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(1120px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.brand-panel {
  background: linear-gradient(165deg, #111b35, #1f3f8f);
  color: #f8fbff;
  border-radius: 24px;
  padding: 56px 54px;
  box-shadow: var(--shadow);
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 18px;
}

.brand-panel h1 {
  font-size: clamp(34px, 4vw, 46px);
  line-height: 1.2;
  margin-bottom: 18px;
}

.desc {
  font-size: 16px;
  line-height: 1.7;
  opacity: 0.94;
  margin-bottom: 26px;
}

.feature-list {
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  font-size: 15px;
  line-height: 1.5;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
}

.login-panel {
  display: flex;
  justify-content: center;
}

.login-card {
  width: min(440px, 100%);
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 40px 34px 28px;
}

.login-card h2 {
  font-size: 30px;
  margin-bottom: 8px;
}

.sub {
  color: var(--text-sub);
  font-size: 14px;
  margin-bottom: 24px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form label,
.signup-field label {
  font-size: 13px;
  font-weight: 600;
  margin-top: 2px;
}

.login-form input,
.signup-field input {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #fff;
}

.login-form input:focus,
.signup-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.primary-btn,
.secondary-btn {
  height: 50px;
  margin-top: 10px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.05s ease;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.primary-btn {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.primary-btn:hover {
  background: var(--primary-hover);
}

.secondary-btn {
  border: 1px solid #c5d2ee;
  color: #1e3a8a;
  background: #eef3ff;
}

.secondary-btn:hover {
  background: #e1eaff;
}

.primary-btn:active,
.secondary-btn:active {
  transform: translateY(1px);
}

.helper-links {
  margin-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.helper-links a {
  text-decoration: none;
  color: #334155;
  font-size: 14px;
}

.helper-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.signup-layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  width: min(980px, calc(100vw - 40px));
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 24px 0;
}

.signup-card {
  width: min(760px, 100%);
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--card-bg);
  box-shadow: var(--shadow);
  padding: 32px;
}

.signup-header {
  margin-bottom: 22px;
}

.signup-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  margin-bottom: 6px;
}

.signup-title {
  font-size: 30px;
  margin-bottom: 6px;
}

.signup-sub {
  color: var(--text-sub);
  font-size: 14px;
}

.signup-form {
  display: grid;
  gap: 18px;
}

.signup-grid {
  display: grid;
  gap: 14px;
}

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

.signup-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.signup-actions .primary-btn,
.signup-actions .secondary-btn {
  margin-top: 0;
}

@media (max-width: 980px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 16px;
    width: min(680px, calc(100vw - 26px));
    padding: 20px 0;
  }

  .brand-panel,
  .login-card,
  .signup-card {
    border-radius: 18px;
  }

  .brand-panel {
    padding: 34px 24px;
  }

  .login-card {
    padding: 28px 22px 22px;
  }

  .signup-card {
    padding: 24px 18px;
  }

  .signup-title {
    font-size: 24px;
  }
}

@media (max-width: 640px) {
  .signup-actions {
    grid-template-columns: 1fr;
  }
}

.form-message {
  min-height: 20px;
  margin-top: -4px;
  font-size: 13px;
  font-weight: 500;
}

.form-message.is-error {
  color: #b91c1c;
}

.form-message.is-success {
  color: #047857;
}

button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.app-shell {
  position: relative;
  z-index: 1;
  height: 100vh;
  width: min(1220px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 16px 0;
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 12px;
}

.app-topbar {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  min-width: 140px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid #c5d2ee;
  background: #eef3ff;
  color: #1e3a8a;
  font-weight: 700;
  text-decoration: none;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav-item {
  height: 42px;
  border: 1px solid #d6e0f4;
  border-radius: 10px;
  background: #ffffff;
  color: #334155;
  font-size: 15px;
  font-weight: 600;
  padding: 0 16px;
  cursor: pointer;
}

.top-nav-item:hover {
  border-color: #b8caee;
}

.top-nav-item.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.app-body {
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: 260px 1fr;
  overflow: hidden;
}

.app-sidebar {
  border-right: 1px solid #dbe4f6;
  padding: 20px 16px;
  background: #f8fbff;
}

.app-sidebar h2 {
  font-size: 18px;
  margin-bottom: 8px;
}

.app-sidebar p {
  color: #5b6b83;
  font-size: 14px;
  line-height: 1.6;
}

.side-nav {
  flex-direction: column;
  align-items: stretch;
}

.side-nav .top-nav-item {
  width: 100%;
  text-align: left;
}

.app-content {
  padding: 20px;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 14px;
  min-height: 0;
  overflow: auto;
}

.content-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.content-head h1 {
  font-size: 24px;
}

.content-subhead {
  border: 1px solid #dbe4f6;
  border-radius: 12px;
  padding: 14px;
  background: #f8fbff;
  display: grid;
  gap: 10px;
}

.subhead-title h2 {
  font-size: 18px;
  margin: 0;
}

.subhead-title p {
  color: #5b6b83;
  font-size: 14px;
  line-height: 1.4;
  margin: 0;
}

.subhead-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
}

#purchase-type-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #d6e1f5;
  border-radius: 999px;
  background: #ffffff;
}

#purchase-type-wrap label {
  font-size: 12px;
  font-weight: 700;
  color: #4b5d80;
  white-space: nowrap;
}

#purchase-type-select {
  height: 34px;
  min-width: 120px;
  border: 1px solid #cfdcf4;
  border-radius: 999px;
  padding: 0 34px 0 12px;
  font-size: 13px;
  font-weight: 600;
  color: #1f3b7a;
  background-color: #f8fbff;
  background-image:
    linear-gradient(45deg, transparent 50%, #5972a8 50%),
    linear-gradient(135deg, #5972a8 50%, transparent 50%),
    linear-gradient(to right, #d9e4f8, #d9e4f8);
  background-position:
    calc(100% - 16px) 14px,
    calc(100% - 11px) 14px,
    calc(100% - 30px) 50%;
  background-size: 5px 5px, 5px 5px, 1px 16px;
  background-repeat: no-repeat;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

#purchase-type-select:hover {
  background-color: #f1f6ff;
}

#purchase-type-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
  background-color: #ffffff;
}

.ghost-btn {
  height: 38px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid #c7d4ef;
  background: #fff;
  color: #294a93;
  font-weight: 600;
  cursor: pointer;
}

.content-card {
  border: 1px dashed #bfd0f1;
  border-radius: 14px;
  background: #ffffff;
  min-height: 320px;
  padding: 18px;
  color: #5b6b83;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 980px) {
  .app-shell {
    width: min(100%, calc(100vw - 16px));
    padding: 8px 0;
  }

  .app-body {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    border-right: 0;
    border-bottom: 1px solid #dbe4f6;
  }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--text-sub);
}

.check-row input {
  width: 16px;
  height: 16px;
}

.login-form select {
  height: 48px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 15px;
  outline: none;
  background: #fff;
}

.login-form select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.kiosk-register-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.kiosk-register-panel h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.is-hidden {
  display: none !important;
}
.member-search-form {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.member-search-form label {
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.member-search-form input {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  outline: none;
  background: #fff;
  flex: 1 1 320px;
  min-width: 220px;
}

.member-search-form input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.member-meta {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.member-role,
.member-count {
  color: #334155;
  font-size: 13px;
  font-weight: 600;
}

.members-card {
  min-height: 320px;
  display: grid;
  grid-template-rows: auto 1fr;
  align-items: stretch;
  justify-content: stretch;
  gap: 10px;
}

.locker-setup-panel {
  border: 1px solid #d6e0f4;
  border-radius: 14px;
  background: #ffffff;
  padding: 16px;
  display: grid;
  gap: 12px;
}

.locker-setup-panel.is-hidden {
  display: none;
}

.locker-setup-topbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.locker-setup-topbar input {
  flex: 1 1 320px;
  min-width: 240px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  font-size: 14px;
  outline: none;
}

.locker-setup-topbar input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.locker-zone-row,
.locker-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.locker-zone-row label,
.locker-size-row label {
  font-size: 14px;
  font-weight: 700;
  color: #334155;
}

.locker-zone-row select {
  min-width: 220px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  background: #fff;
}

.locker-zone-summary {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  font-weight: 600;
}

.locker-size-inputs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.locker-size-inputs input {
  width: 90px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 10px;
  font-size: 14px;
  outline: none;
  background: #fff;
}

.locker-size-inputs input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.locker-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.locker-grid-placeholder {
  min-height: 220px;
  border: 1px dashed #c3d2ef;
  border-radius: 12px;
  background: #f8fbff;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  padding: 14px;
}

.locker-grid-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.locker-next-number {
  font-size: 14px;
  font-weight: 700;
  color: #1e3a8a;
}

.locker-preview {
  border: 1px solid #d6e0f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 10px 12px;
  color: #334155;
  font-size: 13px;
  line-height: 1.5;
}

.locker-preview.is-error {
  border-color: #f1b5b5;
  background: #fff1f1;
  color: #b91c1c;
}

.locker-grid {
  width: 100%;
  display: grid;
  gap: 8px;
}

.locker-grid-cell {
  min-height: 96px;
  border: 1px solid #d6e0f4;
  border-radius: 10px;
  background: #ffffff;
  padding: 8px;
  display: grid;
  align-content: start;
  gap: 4px;
  text-align: left;
  cursor: pointer;
}

.locker-grid-cell:hover {
  border-color: #aac0ef;
}

.locker-grid-cell.is-void {
  background: transparent;
  border-style: dashed;
  border-color: #cad7ef;
  cursor: default;
}

.locker-void-mark {
  display: block;
  width: 100%;
  height: 100%;
}

.locker-blank-mark {
  display: block;
  width: 100%;
  height: 100%;
}

.locker-no {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
}

.locker-status {
  font-size: 12px;
  font-weight: 700;
  color: #0f766e;
}

.locker-name,
.locker-remain {
  font-size: 12px;
  color: #64748b;
}

.locker-action-row .ghost-btn.mode-active {
  border-color: #f1b5b5;
  background: #fff1f1;
  color: #c2410c;
}

.members-table-wrap {
  border: 1px solid #d6e0f4;
  border-radius: 10px;
  overflow: auto;
}

.members-table {
  width: 100%;
  min-width: 1200px;
  border-collapse: collapse;
  color: #334155;
  font-size: 13px;
}

.members-table th,
.members-table td {
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 10px;
  text-align: left;
  white-space: nowrap;
}

.members-table thead th {
  background: #f8fbff;
  position: sticky;
  top: 0;
  z-index: 1;
}

.empty-cell {
  text-align: center;
  color: #64748b;
}
.topbar-logout {
  margin-left: auto;
}


.content-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.table-action-btn {
  height: 32px;
  padding: 0 10px;
  font-size: 12px;
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, 0.45);
  display: grid;
  place-items: center;
  padding: 16px;
}

.modal-panel {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 14px;
  border: 1px solid #c7d4ef;
  background: #fff;
  padding: 16px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.modal-head h2 {
  font-size: 20px;
}

.modal-form {
  display: grid;
  gap: 10px;
}

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

.modal-field label {
  font-size: 13px;
  font-weight: 600;
}

.modal-field input,
.modal-field select {
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 12px;
  font-size: 14px;
  background: #fff;
  outline: none;
}

.modal-field input:focus,
.modal-field select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.13);
}

.modal-check {
  margin-top: 2px;
}

.modal-check label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.modal-check input {
  width: 16px;
  height: 16px;
}

.modal-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.modal-actions .primary-btn,
.modal-actions .secondary-btn {
  margin-top: 0;
}

@media (max-width: 640px) {
  .modal-actions {
    grid-template-columns: 1fr;
  }
}

.table-actions-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.danger-action-btn {
  border-color: #f1c5cc;
  color: #b91c1c;
  background: #fff5f5;
}

.danger-action-btn:hover {
  background: #ffe8e8;
}
