:root {
  --melon: #e55a43;
  --coral: #ff7f57;
  --apricot: #f8c36f;
  --mint: #82cec4;
  --lime: #b0cb63;
  --ink: #1b1b1f;
  --paper: #fffdf7;
  --line: rgba(27, 27, 31, 0.16);
  --shadow: 0 24px 60px rgba(27, 27, 31, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(130, 206, 196, 0.55), transparent 30%),
    radial-gradient(circle at bottom right, rgba(176, 203, 99, 0.38), transparent 26%),
    linear-gradient(140deg, #baf0ea, var(--paper) 42%, #dff7f3 100%);
}

.app-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.panel {
  width: min(100%, 900px);
  border-radius: 32px;
  background: rgba(255, 253, 251, 0.88);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.7);
}

.panel-login {
  padding: 40px 32px;
  max-width: 460px;
}

.brand-logo {
  display: block;
  width: 132px;
  max-width: 46%;
  margin: 0 auto 10px;
  filter: drop-shadow(0 12px 26px rgba(255, 211, 0, 0.28));
}

.brand-chip {
  display: inline-flex;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--melon);
  color: white;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.page-title,
#recipes-title {
  margin: 16px 0 8px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
}

.page-copy,
.search-hint,
.section-kicker {
  margin: 0;
  color: rgba(23, 23, 28, 0.72);
}

.login-form {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.field,
.language-picker {
  display: grid;
  gap: 8px;
  font-weight: 700;
}

.field input,
.language-picker select,
.search-shell input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 15px 18px;
  font: inherit;
  background: rgba(255, 255, 255, 0.96);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field input:focus,
.language-picker select:focus,
.search-shell input:focus {
  outline: none;
  border-color: var(--coral);
  box-shadow: 0 0 0 5px rgba(255, 127, 87, 0.16);
  transform: translateY(-1px);
}

.primary-button {
  border: 0;
  border-radius: 18px;
  padding: 16px 20px;
  font: inherit;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--coral), var(--melon));
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(229, 90, 67, 0.34);
}

.panel-recipes {
  padding: 34px 28px 28px;
}

.recipes-header {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  align-items: end;
}

.recipes-title-block {
  display: grid;
  gap: 6px;
}

.header-logo {
  width: 74px;
  max-width: 100%;
  filter: drop-shadow(0 10px 22px rgba(255, 211, 0, 0.22));
}

.search-shell {
  display: block;
  margin-top: 26px;
}

.search-shell input {
  padding-right: 48px;
  background:
    linear-gradient(90deg, rgba(130, 206, 196, 0.22), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
}

.search-hint {
  margin-top: 10px;
}

.recipes-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.recipe-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border-radius: 24px;
  background: white;
  border: 1px solid rgba(23, 23, 28, 0.08);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.recipe-item:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 95, 129, 0.4);
  box-shadow: 0 18px 30px rgba(23, 23, 28, 0.08);
}

.recipe-name {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 2rem);
  font-weight: 800;
}

.recipe-meta {
  margin: 6px 0 0;
  color: rgba(23, 23, 28, 0.66);
}

.recipe-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 110px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--apricot);
  color: var(--ink);
  font-weight: 800;
}

.recipe-item.selected {
  border-color: rgba(130, 206, 196, 0.52);
  background: linear-gradient(90deg, rgba(176, 203, 99, 0.18), rgba(255, 255, 255, 1));
}

.recipe-item.selected .recipe-tag {
  background: var(--mint);
  color: #0f6158;
}

.hidden {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 700px) {
  .panel-login,
  .panel-recipes {
    padding: 24px 18px;
    border-radius: 24px;
  }

  .recipes-header,
  .recipe-item {
    grid-template-columns: 1fr;
  }

  .recipes-header {
    align-items: stretch;
  }

  .brand-logo {
    width: 112px;
  }

  .header-logo {
    width: 64px;
  }

  .recipe-tag {
    justify-self: start;
  }
}
