html,
body.agenda-login-page {
  min-height: 100%;
}

body.agenda-login-page {
  color: var(--store-ink, #3E2C25);
  background:
    radial-gradient(circle at 12% 15%, rgba(219, 231, 255, 0.44) 0%, transparent 32%),
    radial-gradient(circle at 86% 16%, rgba(188, 239, 255, 0.36) 0%, transparent 34%),
    linear-gradient(135deg, #f7f9ff 0%, #f2f6ff 50%, #eef3ff 100%);
}

.agenda-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.agenda-login-box {
  width: min(100%, 420px);
  padding: 34px;
  color: var(--store-ink, #3E2C25);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid color-mix(in srgb, var(--store-primary, #72223B) 18%, white);
  border-radius: 16px;
  box-shadow: 0 24px 70px rgba(19, 45, 101, 0.18);
}

.agenda-login-brand {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
}

.agenda-login-brand img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.agenda-login-title,
.agenda-login-subtitle {
  margin: 0;
  text-align: center;
}

.agenda-login-title {
  font-size: 2rem;
  font-weight: 800;
  color: var(--store-ink, #3E2C25);
}

.agenda-login-subtitle {
  margin-top: 7px;
  margin-bottom: 22px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #667596;
}

.agenda-login-note {
  margin: 10px 0 22px;
  color: #667596;
  font-size: 0.95rem;
  line-height: 1.45;
  text-align: center;
}

.agenda-login-form {
  display: grid;
  gap: 14px;
}

.agenda-form-group {
  margin: 0;
}

.agenda-form-group input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  color: var(--store-ink, #3E2C25);
  background: #ffffff;
  border: 1px solid color-mix(in srgb, var(--store-primary) 20%, white);
  border-radius: 12px;
  font-size: 0.95rem;
  outline: none;
}

.agenda-form-group input:focus {
  border-color: var(--store-primary, #72223B);
  box-shadow: 0 0 0 3px rgba(49, 86, 255, 0.16);
}

.agenda-password-wrap {
  position: relative;
}

.agenda-password-wrap input {
  padding-right: 52px;
}

.agenda-password-toggle {
  position: absolute;
  top: 50%;
  right: 3px;
  width: 44px;
  height: 44px;
  padding: 0;
  display: grid;
  place-items: center;
  color: #667596;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 2;
}

.agenda-password-toggle:hover {
  color: var(--store-primary, #72223B);
  background: color-mix(in srgb, var(--store-primary) 10%, transparent);
}

.agenda-password-toggle svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

.agenda-password-toggle[aria-pressed="true"] .agenda-password-slash {
  display: none;
}

.agenda-remember {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: #667596;
  font-weight: 700;
}

.agenda-remember input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.agenda-login-submit {
  min-height: 48px;
  margin-top: 2px;
  color: #ffffff;
  background: var(--store-primary, #72223B);
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(49, 86, 255, 0.22);
}

.agenda-login-submit:hover {
  background: var(--store-button, #72223B);
}

.agenda-login-footer {
  margin-top: 18px;
  text-align: center;
}

.agenda-login-footer a {
  color: var(--store-primary, #72223B);
  font-weight: 700;
}

@media (max-width: 520px) {
  .agenda-login-shell {
    padding: 16px;
  }

  .agenda-login-box {
    padding: 24px 18px;
  }
}

body.agenda-login-page { color: #3E2C25; background-color: var(--store-bg, #F8F3EB); background-image: var(--store-backdrop); }
.agenda-login-box { border-color: color-mix(in srgb, var(--store-primary) 15%, white); box-shadow: 0 20px 60px color-mix(in srgb, var(--store-primary) 10%, transparent); }
.agenda-login-brand { width: 260px; max-width: 100%; height: auto; margin-bottom: 26px; }
.agenda-login-title { font: 400 25px Georgia, serif; color: var(--store-primary); }
.agenda-login-subtitle { color: #3E2C25; }
.agenda-login-submit { background: var(--store-button) !important; color: var(--store-button-text) !important; box-shadow: 0 5px 16px color-mix(in srgb, var(--store-primary) 15%, transparent); }
.agenda-login-submit:hover { filter: brightness(.92); }
.agenda-form-group input:focus { border-color: var(--store-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--store-primary) 10%, transparent); }
.agenda-login-footer a { color: var(--store-primary); }

.agenda-field-error { display: block; margin-top: 7px; color: #b42332; font-size: 13px; }
.agenda-field-error[hidden] { display: none; }
.agenda-form-group input[aria-invalid="true"] { border-color: #b42332; }
.agenda-login-submit:disabled { opacity: .65; cursor: wait; }
.agenda-login-alert.swal2-popup { width: 420px; max-width: calc(100% - 32px); padding: 28px 24px; border-radius: 8px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.2); font-family: inherit; }
body.agenda-login-page .swal2-container { width: 100vw; }
.agenda-login-alert .swal2-title { padding: 0; color: #302a2d; font-size: 24px; font-weight: 600; }
.agenda-login-alert .swal2-html-container { margin: 14px 0 0; color: #66616a; font-size: 16px; line-height: 1.6; }
.agenda-login-alert .swal2-icon { margin: 0 auto 22px; }
.agenda-alert-confirm { min-height: 44px; padding: 10px 30px; border: 0; border-radius: 6px; background: var(--store-primary, #72223b); color: #fff; font-weight: 600; }
.agenda-alert-confirm:hover { filter: brightness(.92); }
.agenda-alert-confirm:focus-visible { outline: 3px solid #cfa866; outline-offset: 3px; }
.agenda-alert-progress { background: #32966b; }
.agenda-alert-enter { animation: agenda-alert-in .28s ease-out both; }
.agenda-alert-exit { animation: agenda-alert-out .18s ease-in both; }
@keyframes agenda-alert-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes agenda-alert-out { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(.97); } }
@media (prefers-reduced-motion: reduce) { .agenda-alert-enter, .agenda-alert-exit { animation: none; } .agenda-login-alert .swal2-icon * { animation: none !important; } }
