@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Newsreader:opsz,wght@6..72,500&display=swap");

:root {
  --bg: #eef5f5;
  --surface: rgba(255,255,255,.72);
  --ink: #10272d;
  --muted: #587078;
  --line: rgba(23,63,72,.12);
  --line-strong: rgba(23,63,72,.2);
  --brand: #397586;
  --brand-dark: #245463;
  --danger: #925b58;
  --shadow: 0 20px 60px rgba(38,73,80,.11);
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 76% 18%, rgba(255,255,255,.8), transparent 30rem),
    radial-gradient(circle at 14% 88%, rgba(213,233,234,.62), transparent 31rem),
    var(--bg);
  color: var(--ink);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.header {
  border-bottom: 1px solid var(--line);
  background: rgba(238,245,245,.78);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(1180px, calc(100% - 40px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-decoration: none;
}

.wordmark svg {
  width: 20px;
  height: 24px;
}

.nav-right {
  color: var(--muted);
  font-size: 12px;
}

.login-main {
  width: min(430px, calc(100% - 32px));
  min-height: calc(100vh - 69px);
  margin: 0 auto;
  display: grid;
  align-items: center;
}

.card {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.card h1 {
  margin: 0 0 6px;
  font-family: "Newsreader", Georgia, serif;
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.02;
}

.card p {
  margin: 0 0 21px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

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

.field span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  outline: none;
  background: rgba(255,255,255,.76);
  color: var(--ink);
}

.field input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(57,117,134,.12);
}

.primary,
.secondary,
.danger {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  transition:
    transform .15s ease,
    background .15s ease,
    opacity .15s ease;
}

.primary {
  width: 100%;
  border: 0;
  background: var(--ink);
  color: white;
}

.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.7);
  color: var(--brand-dark);
}

.danger {
  border: 1px solid rgba(146,91,88,.22);
  background: rgba(146,91,88,.08);
  color: var(--danger);
}

.primary:hover,
.secondary:hover,
.danger:hover {
  transform: translateY(-1px);
}

.error {
  display: none;
  margin-top: 13px;
  padding: 10px 11px;
  border-radius: 8px;
  background: rgba(202,116,106,.11);
  color: #874c48;
  font-size: 12px;
  line-height: 1.5;
}

.dashboard {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 58px 0 76px;
}

.dashboard-top {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 27px;
}

.dashboard h1 {
  margin: 0;
  font-family: "Newsreader", Georgia, serif;
  font-size: 60px;
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1;
}

.dashboard-copy {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.requests {
  display: grid;
  gap: 12px;
}

.empty {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.54);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.request {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.62);
  box-shadow: 0 12px 28px rgba(48,86,94,.06);
}

.request-name {
  margin: 0 0 6px;
  font-size: 15px;
}

.request-detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  margin-top: 10px;
  padding: 0 8px;
  border-radius: 30px;
  background: rgba(57,117,134,.09);
  color: var(--brand-dark);
  font-size: 11px;
  font-weight: 700;
}

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

[hidden] {
  display: none !important;
}

@media (max-width: 680px) {
  .dashboard {
    width: calc(100% - 28px);
    padding-top: 38px;
  }

  .dashboard-top {
    display: block;
  }

  .dashboard h1 {
    font-size: 48px;
  }

  .dashboard-top .secondary {
    margin-top: 16px;
  }

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

  .actions {
    width: 100%;
  }

  .actions button {
    flex: 1;
  }
}
