.sidebar {
  background: #174f48;
}

.side-nav button.active {
  background: rgba(255, 255, 255, 0.16);
}

.project-summary-grid {
  margin-bottom: 18px;
}

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

.project-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 21px 22px;
  background:
    linear-gradient(145deg, rgba(124, 199, 168, 0.08), transparent 45%),
    white;
  box-shadow: 0 12px 30px rgba(8, 52, 63, 0.05);
}

.project-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.project-card-head h2 {
  margin: 5px 0 0;
  color: var(--teal);
  font-size: 21px;
}

.project-city {
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-address {
  display: grid;
  gap: 5px;
  margin: 18px 0 20px;
  color: var(--text);
  font-size: 13px;
  line-height: 1.6;
}

.project-address span {
  color: var(--muted);
  font-size: 10px;
}

.project-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 10px;
}

.project-card-foot strong {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--mint-soft);
  color: var(--teal);
  font-size: 10px;
}

.property-role {
  flex: none;
  padding-right: 12px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  line-height: 1.4;
  white-space: nowrap;
}

.template-download-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  border: 1px solid rgba(15, 76, 92, 0.14);
  border-radius: 16px;
  padding: 14px 15px;
  background: linear-gradient(135deg, rgba(124, 199, 168, 0.13), rgba(255, 255, 255, 0.88));
}

.template-download-row strong,
.template-download-row span {
  display: block;
}

.template-download-row strong {
  color: var(--teal);
  font-size: 13px;
}

.template-download-row span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.template-download-row a {
  flex: 0 0 auto;
  border-radius: 11px;
  padding: 10px 13px;
  background: var(--teal);
  color: white;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.template-download-row a:hover {
  background: var(--deep);
}

.property-banner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
  border-radius: 22px;
  padding: 22px 24px;
  background:
    linear-gradient(115deg, rgba(124, 199, 168, 0.18), transparent 48%),
    var(--deep);
  color: white;
}

.property-banner h2 {
  margin: 0 0 7px;
  font-size: 22px;
}

.property-banner p {
  margin: 0;
  color: var(--teal-soft);
  font-size: 12px;
  line-height: 1.7;
}

.property-banner a {
  border-radius: 12px;
  padding: 11px 15px;
  background: var(--orange);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.household-cell strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}

.household-cell span {
  color: var(--muted);
  font-size: 10px;
}

.collection-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
}

.collection-bars {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 17px;
  background: white;
}

.inline-form .field.full {
  grid-column: 1 / -1;
}

.inline-form .actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

@media (max-width: 800px) {
  .property-role {
    display: none;
  }

  .template-download-row {
    align-items: stretch;
    flex-direction: column;
  }

  .template-download-row a {
    text-align: center;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

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

  .property-banner {
    grid-template-columns: 1fr;
  }

  .inline-form {
    grid-template-columns: 1fr;
  }

  .inline-form .field.full,
  .inline-form .actions {
    grid-column: auto;
  }
}

.property-login {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.65fr);
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 12%, rgba(124, 199, 168, 0.2), transparent 26rem),
    linear-gradient(135deg, #eef5f2, #f8f0e5);
}

.property-login[hidden] {
  display: none;
}

.load-error {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 16px;
  border: 1px solid #f1c2b8;
  border-radius: 14px;
  padding: 12px 16px;
  background: #fdeae5;
  color: #b0472f;
  font-size: 12px;
}

.load-error[hidden] {
  display: none;
}

.login-visual {
  position: relative;
  overflow: hidden;
  padding: clamp(50px, 8vw, 110px);
  background:
    linear-gradient(140deg, rgba(124, 199, 168, 0.12), transparent 45%),
    var(--deep);
  color: white;
}

.login-visual::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -150px;
  width: 410px;
  height: 410px;
  border-radius: 50%;
  border: 82px solid rgba(242, 107, 75, 0.72);
}

.login-visual > img {
  width: 76px;
  height: 76px;
  border-radius: 20px;
}

.login-visual > span {
  display: inline-block;
  margin: 36px 0 14px;
  color: var(--teal-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.login-visual h1 {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 0 24px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.15;
}

.login-visual p {
  position: relative;
  z-index: 1;
  max-width: 610px;
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  line-height: 1.8;
}

.login-flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 50px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.login-flow span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.07);
}

.login-flow i {
  color: var(--orange);
  font-style: normal;
}

.login-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
  padding: 60px 62px;
}

.login-card > img {
  width: 58px;
  height: 58px;
  margin-bottom: 28px;
  border-radius: 15px;
}

.login-card h2 {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 34px;
}

.login-card > p {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 13px;
}

.login-card .field {
  margin-bottom: 14px;
}

.login-card .field input {
  padding: 14px;
  background: white;
}

.login-card .auth-step[hidden] {
  display: none;
}

.login-card .auth-step .phone-mask {
  display: flex;
  align-items: center;
  min-height: 50px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 0 15px;
  background: #f7fbf9;
  color: var(--deep);
  font-size: 14px;
  font-weight: 800;
}

.login-card .auth-step .step-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}

.login-card .auth-step .step-actions .login-submit {
  flex: 1;
  margin-top: 0;
}

.login-card .auth-step .step-actions .button-outline {
  min-width: 86px;
}

.login-card .auth-step .resend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.login-submit {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 13px;
  padding: 14px;
  background: var(--orange);
  color: white;
  font-weight: 700;
}

.login-activate {
  margin-top: 14px;
  border: 1px solid rgba(37, 108, 96, 0.22);
  border-radius: 11px;
  padding: 10px 12px;
  color: var(--teal);
  background: rgba(156, 211, 183, 0.12);
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.login-activate:hover {
  background: rgba(156, 211, 183, 0.22);
}

.login-back {
  margin-top: 24px;
  color: var(--teal);
  font-size: 12px;
  text-align: center;
  text-decoration: none;
}

.login-error {
  min-height: 18px;
  margin: 2px 0 4px !important;
  color: #c34d35 !important;
  font-size: 12px !important;
}

@media (max-width: 820px) {
  .property-login {
    display: block;
    background: var(--cream);
  }

  .login-visual {
    padding: 32px 22px;
  }

  .login-visual h1 {
    margin-top: 20px;
    font-size: 36px;
  }

  .login-visual p {
    display: none;
  }

  .login-flow {
    margin-top: 24px;
  }

  .login-card {
    max-width: none;
    padding: 34px 25px 55px;
  }

  .login-card > img {
    display: none;
  }
}
