:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --text: #172033;
  --muted: #667085;
  --line: #d9e2ef;
  --blue: #2484c6;
  --blue-dark: #155b91;
  --green: #16845b;
  --amber: #a96a00;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 12%, rgba(36, 132, 198, 0.13), transparent 34%),
    linear-gradient(135deg, #f7f9fc 0%, #eef3f9 100%);
  color: var(--text);
  font-family: Pretendard, "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  padding: 48px;
}

.login-wrap {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

.login-shell {
  display: flex;
  width: min(100%, 460px);
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(217, 226, 239, 0.95);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--blue-dark);
  font-size: 18px;
  font-weight: 900;
}

.brand-mark {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  background: var(--blue);
  color: #fff;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(36, 132, 198, 0.24);
}

.login-card {
  width: 100%;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.login-card h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.login-card .hint {
  margin: 0 0 28px;
  color: var(--muted);
  line-height: 1.6;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field label {
  font-size: 14px;
  font-weight: 800;
  color: #344054;
}

.field input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #cfd8e6;
  border-radius: 10px;
  outline: none;
  color: var(--text);
  background: #fbfdff;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 132, 198, 0.14);
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.button:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 24px rgba(36, 132, 198, 0.22);
  transform: translateY(-1px);
}

.button.secondary {
  background: #eef4fb;
  color: var(--blue-dark);
  box-shadow: none;
}

.button.ghost {
  background: transparent;
  color: #475467;
  box-shadow: none;
}

.error {
  min-height: 22px;
  margin: 12px 0 0;
  color: #c7362f;
  font-size: 14px;
  font-weight: 800;
}

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

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.topbar h1 {
  margin: 14px 0 8px;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.topbar p {
  margin: 0;
  color: #526276;
  font-size: 17px;
  line-height: 1.7;
}

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 28px 0;
}

.summary-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.8);
}

.summary-card strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.summary-card span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.list {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.list-head,
.site-row {
  display: grid;
  grid-template-columns: minmax(260px, 1.25fr) 120px 190px 190px 132px;
  align-items: center;
  gap: 18px;
}

.list-head {
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  color: #667085;
  font-size: 13px;
  font-weight: 900;
}

.site-row {
  padding: 20px 22px;
  border-bottom: 1px solid #edf1f7;
}

.site-row:last-child {
  border-bottom: 0;
}

.site-title {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.site-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 14px;
  background: #e8f4fd;
  color: var(--blue);
  font-size: 20px;
  font-weight: 900;
}

.site-title h2 {
  margin: 0 0 4px;
  overflow: hidden;
  color: #172033;
  font-size: 18px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.site-title p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge {
  display: inline-flex;
  width: max-content;
  align-items: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.badge.public {
  background: #e7f7f0;
  color: var(--green);
}

.badge.protected {
  background: #fff3da;
  color: var(--amber);
}

.date {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.date.empty {
  color: #98a2b3;
}

.loading {
  padding: 48px;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 960px) {
  .page {
    padding: 24px;
  }

  .login-wrap {
    align-items: flex-start;
    padding: 24px;
  }

  .login-shell {
    width: min(100%, 430px);
  }

  .topbar {
    flex-direction: column;
  }

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

  .list-head {
    display: none;
  }

  .site-row {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}
