.account-button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(41,29,32,0.14);
  border-radius: 20px;
  color: #291d20;
  background: #fffdf9;
  font: 700 0.72rem "DM Sans", sans-serif;
  cursor: pointer;
}

.account-button.authenticated { color: white; border-color: #a63f55; background: #a63f55; }

.auth-dialog {
  width: min(460px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 14px;
  color: #291d20;
  background: #fffdf9;
  box-shadow: 0 28px 80px rgba(39,27,30,0.3);
}

.auth-dialog::backdrop { background: rgba(39,27,30,0.72); backdrop-filter: blur(5px); }
.auth-panel { position: relative; padding: 38px; }
.auth-close { position: absolute; top: 15px; right: 15px; display: grid; width: 36px; height: 36px; place-items: center; border: 0; border-radius: 50%; background: #eee7e1; font-size: 1.35rem; cursor: pointer; }
.auth-brand { color: #a63f55; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; }
.auth-panel h2 { margin: 10px 0 8px; font: 700 2.25rem "Playfair Display", serif; }
.auth-intro { margin: 0 0 24px; color: #77696c; font-size: 0.83rem; line-height: 1.55; }
.auth-tabs { display: grid; margin-bottom: 22px; padding: 4px; grid-template-columns: 1fr 1fr; border-radius: 8px; background: #eee7e1; }
.auth-tabs button { min-height: 38px; border: 0; border-radius: 6px; color: #77696c; background: transparent; font-weight: 700; cursor: pointer; }
.auth-tabs button.active { color: #291d20; background: white; box-shadow: 0 3px 12px rgba(39,27,30,0.08); }
.auth-form { display: grid; gap: 15px; }
.auth-form[hidden] { display: none; }
.auth-form label { display: grid; gap: 7px; color: #77696c; font-size: 0.72rem; font-weight: 700; }
.auth-form input { width: 100%; min-height: 47px; padding: 0 13px; border: 1px solid rgba(41,29,32,0.15); border-radius: 7px; background: white; outline: none; }
.auth-form input:focus { border-color: #a63f55; box-shadow: 0 0 0 3px rgba(166,63,85,0.1); }
.auth-submit { min-height: 49px; border: 0; border-radius: 7px; color: white; background: #a63f55; font-weight: 700; cursor: pointer; }
.auth-submit:disabled { opacity: 0.6; cursor: wait; }
.auth-message { min-height: 20px; margin: 15px 0 0; color: #a63f55; font-size: 0.78rem; line-height: 1.45; }
.account-panel { display: grid; gap: 16px; text-align: center; }
.account-panel[hidden] { display: none; }
.account-avatar { display: grid; width: 64px; height: 64px; margin: 4px auto; place-items: center; border-radius: 50%; color: white; background: #a63f55; font: 700 1.5rem "Playfair Display", serif; }
.account-email { color: #77696c; word-break: break-all; }
.signout-button { min-height: 46px; border: 1px solid rgba(41,29,32,0.15); border-radius: 7px; color: #291d20; background: transparent; font-weight: 700; cursor: pointer; }

@media (max-width: 620px) {
  .auth-panel { padding: 34px 22px 26px; }
  .account-button { padding: 0 10px; }
}
