* { box-sizing: border-box; }

body {
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  margin: 0;
  padding: 24px;
  color: #302b25;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  background: linear-gradient(145deg, #eee9dd, #f8f7f3 58%, #eaf1f1);
}

.auth-shell {
  width: min(100%, 820px);
  padding: 40px;
  background: rgba(255, 253, 248, .98);
  border: 1px solid #e2dac7;
  border-radius: 24px;
  box-shadow: 0 18px 60px rgba(66, 54, 31, .12);
}

.auth-shell-login { max-width: 460px; }
.auth-brand { margin-bottom: 12px; color: #9b7424; font-size: 14px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0; color: #302b25; font-size: clamp(30px, 5vw, 38px); line-height: 1.12; letter-spacing: -.035em; }
.auth-lead { margin: 10px 0 30px; color: #7b7469; line-height: 1.5; }

.auth-form { display: grid; gap: 8px; }
.auth-form label { margin-top: 8px; color: #5f574b; font-size: 13px; font-weight: 750; }
.auth-form input { width: 100%; height: 46px; padding: 0 13px; color: #302b25; font: 16px/1 system-ui, sans-serif; background: #fff; border: 1px solid #d9ceb5; border-radius: 11px; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.auth-form input:focus { border-color: #d2a53b; box-shadow: 0 0 0 3px rgba(210, 165, 59, .2); }
.auth-form button,
.logout-button { min-height: 44px; margin-top: 16px; padding: 0 18px; color: #29231a; font: 750 14px/1 system-ui, sans-serif; cursor: pointer; background: #d2a53b; border: 1px solid #d2a53b; border-radius: 11px; transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.auth-form button:hover,
.auth-form button:focus-visible { background: #bf9128; border-color: #bf9128; box-shadow: 0 7px 18px rgba(66, 54, 31, .16); transform: translateY(-1px); }
.auth-error { padding: 11px 13px; color: #9a3412; font-size: 14px; background: #fff7ed; border: 1px solid #fdba74; border-radius: 10px; }

.selector-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.selector-head .logout-button { margin-top: 0; color: #a52626; background: #fff; border-color: #e5bcbc; }
.selector-head .logout-button:hover,
.selector-head .logout-button:focus-visible { background: #fff2f2; border-color: #d99494; box-shadow: 0 7px 18px rgba(80, 30, 30, .08); transform: translateY(-1px); }
.store-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.store-card { display: flex; min-height: 210px; padding: 26px; flex-direction: column; justify-content: space-between; color: #fff; text-decoration: none; border: 1px solid transparent; border-radius: 18px; box-shadow: 0 10px 28px rgba(30, 35, 35, .12); transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease; }
.store-card:hover,
.store-card:focus-visible { border-color: rgba(255, 255, 255, .42); box-shadow: 0 15px 34px rgba(30, 35, 35, .18); transform: translateY(-2px); outline: none; }
.store-card-dziva { background: linear-gradient(135deg, #29251f, #4b402d); }
.store-card-dzshop { background: linear-gradient(135deg, #101717, #18312d); }
.store-card strong { color: #e2b64d; font-size: 30px; letter-spacing: -.035em; }
.store-card-dzshop strong { color: #37d4c7; }
.store-kicker { color: rgba(255, 255, 255, .67); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 650px) {
  body { padding: 12px; }
  .auth-shell { padding: 26px 20px; border-radius: 18px; }
  .selector-head { flex-direction: column; }
  .selector-head form,
  .selector-head .logout-button { width: 100%; }
  .store-grid { grid-template-columns: 1fr; }
  .store-card { min-height: 170px; }
}
