:root {
  --hero-background-image: url("/hero-background.png");
  --hero-overlay:
    linear-gradient(140deg, rgba(5, 10, 16, 0.82) 0%, rgba(8, 12, 18, 0.68) 34%, rgba(15, 20, 27, 0.54) 64%, rgba(87, 58, 18, 0.24) 100%),
    radial-gradient(circle at 86% 16%, rgba(245, 188, 74, 0.24), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(245, 188, 74, 0.12), transparent 36%);
  --glass-panel-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.62));
  --glass-panel-bg-strong: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.72));
  --glass-control-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.64));
  --glass-control-bg-muted: linear-gradient(180deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.54));
  --glass-dark-bg: linear-gradient(180deg, rgba(10, 16, 24, 0.76), rgba(6, 10, 16, 0.62));
  --glass-border: rgba(255, 255, 255, 0.34);
  --glass-border-strong: rgba(255, 255, 255, 0.42);
  --glass-border-muted: rgba(14, 26, 38, 0.14);
  --glass-shadow: 0 24px 58px rgba(3, 8, 16, 0.28);
  --glass-shadow-soft: 0 14px 30px rgba(3, 8, 16, 0.18);
  --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.46);
  --glass-blur: 18px;
  --glass-blur-soft: 10px;
  --glass-text: #08131f;
  --glass-text-muted: rgba(8, 19, 31, 0.72);
  --glass-text-subtle: rgba(8, 19, 31, 0.58);
  --accent-warm: rgba(241, 184, 62, 0.88);
  --accent-warm-soft: rgba(241, 184, 62, 0.22);
  --auth-stage-bg:
    radial-gradient(circle at 12% 18%, rgba(29, 78, 216, 0.16), transparent 32%),
    radial-gradient(circle at 88% 20%, rgba(239, 68, 68, 0.14), transparent 28%),
    rgba(2, 6, 12, 0.84);
  --auth-card-bg:
    linear-gradient(135deg, rgba(3, 8, 16, 0.58), rgba(3, 8, 16, 0.34)),
    url("/login-gears-photo.png") center center / cover no-repeat;
  --auth-card-overlay:
    linear-gradient(90deg, rgba(4, 10, 18, 0.42) 0%, rgba(4, 10, 18, 0.16) 42%, rgba(4, 10, 18, 0.52) 100%),
    radial-gradient(circle at 78% 88%, rgba(255, 122, 26, 0.2), transparent 30%),
    radial-gradient(circle at 18% 14%, rgba(255, 140, 48, 0.14), transparent 22%);
  --auth-panel-bg: linear-gradient(180deg, rgba(7, 12, 20, 0.2), rgba(7, 12, 20, 0.36));
  --auth-chip-bg: rgba(255, 255, 255, 0.08);
  --auth-chip-bg-muted: rgba(255, 255, 255, 0.06);
  --auth-chip-border: rgba(255, 255, 255, 0.12);
  --auth-text: rgba(255, 255, 255, 0.96);
  --auth-text-muted: rgba(236, 242, 248, 0.76);
  --auth-text-subtle: rgba(255, 255, 255, 0.56);
  --auth-control-bg: rgba(248, 250, 252, 0.96);
  --auth-control-border: rgba(255, 255, 255, 0.14);
  --auth-control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 36px rgba(0, 0, 0, 0.22);
  --auth-primary-bg: linear-gradient(180deg, rgba(255, 81, 81, 0.98), rgba(216, 31, 31, 0.94));
  --auth-primary-shadow: 0 22px 40px rgba(127, 29, 29, 0.26);
  --auth-secondary-bg: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.04));
}

body.theme-hero {
  background-color: #05080d;
  background-image: var(--hero-background-image);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: var(--glass-text);
  position: relative;
}

body.theme-hero::before {
  content: "";
  position: fixed;
  inset: 0;
  background: var(--hero-overlay);
  pointer-events: none;
  z-index: 0;
}

@media (max-width: 900px) {
  body.theme-hero {
    background-attachment: scroll;
  }
}

body.theme-index #notice,
body.theme-index .topPanel,
body.theme-index #planningView,
body.theme-index table,
body.theme-index #modal,
body.theme-index #dateModal,
body.theme-index #deleteBox,
body.theme-index #confirmBox,
body.theme-index #historyBox,
body.theme-index #centralBox,
body.theme-reset .box,
body.theme-reservation .container {
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
}

body.theme-index #notice,
body.theme-index #modal,
body.theme-index #dateModal,
body.theme-index #deleteBox,
body.theme-index #confirmBox,
body.theme-index #historyBox,
body.theme-index #centralBox,
body.theme-reset .box,
body.theme-reservation .container {
  background: var(--glass-panel-bg-strong);
}

body.theme-index .topPanel,
body.theme-index #planningView,
body.theme-index table {
  background: var(--glass-panel-bg);
}

body.theme-index #search,
body.theme-index #dateBtn,
body.theme-index #addBtn,
body.theme-index #centralBtn,
body.theme-index #planningBtn,
body.theme-index #logoutBtn,
body.theme-index .planningActions button,
body.theme-index .dateField input,
body.theme-index .dateActions button,
body.theme-index #deleteActions button,
body.theme-index #confirmActions button,
body.theme-index #smsText,
body.theme-index #sendPass,
body.theme-index .copyBtn,
body.theme-index #centralSearch,
body.theme-index .centralSelectBtn,
body.theme-reservation input,
body.theme-reservation select,
body.theme-reservation textarea,
body.theme-reservation button,
body.theme-reset .row input,
body.theme-reset button {
  background: var(--glass-control-bg);
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--glass-inset), var(--glass-shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--glass-text);
}

body.theme-index #search::placeholder,
body.theme-index #centralSearch::placeholder,
body.theme-index #smsText::placeholder,
body.theme-index #sendPass::placeholder,
body.theme-reservation input::placeholder,
body.theme-reservation textarea::placeholder,
body.theme-reset .row input::placeholder {
  color: rgba(8, 19, 31, 0.46);
}

body.theme-index #dateBtn.active {
  outline: 3px solid rgba(241, 184, 62, 0.36);
}

body.theme-index #planningBtn.activeView,
body.theme-index #centralBtn.activeView {
  background: var(--accent-warm-soft);
  border-color: rgba(241, 184, 62, 0.48);
}

body.theme-index #appointmentsBadge {
  background: rgba(241, 184, 62, 0.16);
  border-color: rgba(241, 184, 62, 0.38);
  color: #3d2b08;
}

body.theme-index #dateInfo .pill {
  background: var(--glass-control-bg-muted);
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: var(--glass-text);
  box-shadow: var(--glass-shadow-soft);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.theme-index th,
body.theme-index table thead th {
  background: linear-gradient(180deg, rgba(10, 15, 23, 0.92), rgba(5, 9, 15, 0.84));
  border-color: rgba(255, 255, 255, 0.12);
}

body.theme-index td,
body.theme-index th {
  border-color: rgba(255, 255, 255, 0.18);
}

body.theme-index tbody tr:hover {
  background: rgba(255, 255, 255, 0.22);
}

body.theme-index tr.selected,
body.theme-index .centralSelectedRow {
  background: rgba(241, 184, 62, 0.18) !important;
}

body.theme-index tr.selected {
  outline-color: rgba(241, 184, 62, 0.56);
}

body.theme-index .smallHint,
body.theme-index #dateInfo,
body.theme-index #centralMeta,
body.theme-index #historyMeta,
body.theme-index .clickRowHint {
  color: var(--glass-text-muted);
}

body.theme-index #loginOverlay,
body.theme-index #registerOverlay,
body.theme-index #resetOverlay {
  background: rgba(4, 8, 14, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-index #loginBox,
body.theme-index #registerBox,
body.theme-index #resetBox {
  background: var(--glass-dark-bg);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.theme-index #loginLogo {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

body.theme-index .loginRow input,
body.theme-index #openRegisterBtn,
body.theme-index #resendVerifyBtn,
body.theme-index #backToLoginBtn,
body.theme-index #resetCancelBtn {
  background: rgba(12, 18, 28, 0.68) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.theme-index #loginBtn,
body.theme-index #createAccountBtn,
body.theme-index #resetSendBtn {
  background: linear-gradient(180deg, rgba(226, 42, 51, 0.96), rgba(186, 22, 33, 0.9)) !important;
  border-color: rgba(255, 255, 255, 0.16) !important;
  box-shadow: 0 18px 38px rgba(130, 14, 23, 0.28);
}

body.theme-index .dangerBtn {
  background: linear-gradient(180deg, rgba(219, 56, 65, 0.95), rgba(180, 26, 37, 0.88)) !important;
  border-color: rgba(120, 0, 0, 0.26) !important;
}

body.theme-index .photoBox a.download,
body.theme-index .photoBox span.del {
  background: var(--glass-control-bg);
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow: var(--glass-shadow-soft);
  color: var(--glass-text);
}

body.theme-index img.thumb {
  border-color: rgba(255, 255, 255, 0.36);
  box-shadow: 0 8px 18px rgba(4, 8, 14, 0.18);
}

body.theme-index #imgOverlay {
  background: rgba(4, 8, 14, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

body.theme-index #bigImage {
  border-color: rgba(255, 255, 255, 0.76);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
}

body.theme-index input:focus,
body.theme-index textarea:focus,
body.theme-index select:focus,
body.theme-reservation input:focus,
body.theme-reservation select:focus,
body.theme-reservation textarea:focus,
body.theme-reset .row input:focus {
  outline: 2px solid rgba(241, 184, 62, 0.34);
  border-color: rgba(241, 184, 62, 0.54) !important;
  box-shadow: 0 0 0 4px rgba(241, 184, 62, 0.14), var(--glass-shadow-soft);
}

body.theme-reset .overlay {
  z-index: 1;
}

body.theme-reset .box {
  border-radius: 20px;
}

body.theme-reset .brand h1,
body.theme-reset .row label {
  color: var(--glass-text);
}

body.theme-reset .muted,
body.theme-reset #who,
body.theme-reset .hint {
  color: var(--glass-text-muted);
}

body.theme-reset button:not(.primary) {
  background: var(--glass-control-bg);
  color: var(--glass-text);
}

body.theme-reset .primary,
body.theme-reservation button {
  background: linear-gradient(180deg, rgba(18, 24, 34, 0.92), rgba(9, 14, 21, 0.82));
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 36px rgba(3, 8, 16, 0.24);
  color: #fff;
}

body.theme-reset .brand img {
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.authStage,
body.theme-index #loginOverlay {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: auto;
  background: var(--auth-stage-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.authStage {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.authCard,
body.theme-index #loginBox {
  width: min(1180px, 96vw);
  min-height: min(760px, calc(100vh - 56px));
  padding: 0;
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--auth-card-bg);
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.5);
  isolation: isolate;
}

.authCard::before,
body.theme-index #loginBox::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--auth-card-overlay);
  z-index: -1;
}

.authShell,
body.theme-index #loginBox .loginShell {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) minmax(420px, 0.98fr);
  min-height: inherit;
}

.authShowcase,
body.theme-index #loginBox .loginShowcase,
.authFormPanel,
body.theme-index #loginBox .loginFormPanel {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 34px 36px 38px;
}

.authShowcase,
body.theme-index #loginBox .loginShowcase {
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.authFormPanel,
body.theme-index #loginBox .loginFormPanel {
  justify-content: center;
  background: var(--auth-panel-bg);
}

.authChip,
body.theme-index #loginBox .loginChip {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--auth-chip-border);
  background: var(--auth-chip-bg);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.authChipMuted,
body.theme-index #loginBox .loginChipMuted {
  background: var(--auth-chip-bg-muted);
}

.authTitleRow,
body.theme-index #loginTitleRow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 24px 0 20px;
}

.authLogoFrame,
body.theme-index #loginBox .loginLogoFrame {
  width: 168px;
  height: 91px;
  display: grid;
  place-items: center;
  box-sizing: border-box;
  padding: 8px 12px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 32px rgba(0, 0, 0, 0.24);
}

.authLogo,
body.theme-index #loginBox #loginLogo {
  width: auto;
  height: 80px;
  max-width: 100%;
  padding: 0;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
  mix-blend-mode: normal;
  filter: saturate(1.04) contrast(1.04);
}

.authBrandBlock,
body.theme-index #loginBox .loginBrandBlock {
  display: grid;
  gap: 4px;
}

.authBrandName,
body.theme-index #loginBox .loginBrandName {
  color: var(--auth-text);
  font-size: clamp(42px, 3vw, 58px);
  line-height: 0.92;
  letter-spacing: -0.05em;
  font-weight: 900;
}

.authBrandSubline,
body.theme-index #loginBox .loginBrandSubline {
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.authPillRow,
body.theme-index #loginBox .loginPillRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.authPill,
body.theme-index #loginBox .loginPill {
  display: inline-flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.authLead,
body.theme-index #loginBox .loginShowcaseLead,
body.theme-index #loginBox .loginFormLead {
  margin: 0;
  color: var(--auth-text-muted);
  font-size: 18px;
  line-height: 1.6;
}

.authLeadShowcase,
body.theme-index #loginBox .loginShowcaseLead {
  max-width: 31ch;
}

.authInfoList,
body.theme-index #loginBox .loginFeatureList {
  display: grid;
  gap: 14px;
  margin-top: auto;
}

.authInfoCard,
body.theme-index #loginBox .loginFeatureCard {
  padding: 18px 18px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 18px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.authInfoLabel,
body.theme-index #loginBox .loginFeatureLabel {
  display: block;
  margin-bottom: 8px;
  color: var(--auth-text-subtle);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.authInfoCard strong,
body.theme-index #loginBox .loginFeatureCard strong {
  display: block;
  color: var(--auth-text);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.authHeading,
body.theme-index #loginBox .loginFormPanel h2 {
  margin: 18px 0 14px;
  color: var(--auth-text);
  font-size: clamp(38px, 3.2vw, 56px);
  line-height: 0.95;
  letter-spacing: -0.05em;
  font-weight: 900;
  max-width: 9ch;
}

.authLeadForm,
body.theme-index #loginBox .loginFormLead {
  margin-bottom: 28px;
  max-width: 34ch;
  font-size: 17px;
}

.authField,
body.theme-index #loginBox .loginRow {
  margin: 0 0 16px;
}

.authFieldLabel,
body.theme-index #loginBox .loginRow label {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.authFieldControl,
.authField input,
.authField select,
.authField textarea,
body.theme-index #loginBox .loginRow input {
  width: 100%;
  min-height: 56px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid var(--auth-control-border);
  background: var(--auth-control-bg) !important;
  box-shadow: var(--auth-control-shadow);
  color: #08131f;
  font-size: 17px;
  line-height: 1.45;
  font: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.authField textarea.authFieldControl,
.authField textarea {
  resize: vertical;
}

.authField select,
select.authFieldControl {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(8, 19, 31, 0.72) 50%),
    linear-gradient(135deg, rgba(8, 19, 31, 0.72) 50%, transparent 50%);
  background-position:
    calc(100% - 22px) calc(50% - 2px),
    calc(100% - 16px) calc(50% - 2px);
  background-size: 6px 6px;
  background-repeat: no-repeat;
  padding-right: 52px;
}

body.theme-index #loginBox .loginRow input:-webkit-autofill,
body.theme-index #loginBox .loginRow input:-webkit-autofill:hover,
body.theme-index #loginBox .loginRow input:-webkit-autofill:focus {
  -webkit-text-fill-color: #08131f;
  caret-color: #08131f;
  box-shadow: 0 0 0 1000px rgba(248, 250, 252, 0.96) inset, var(--auth-control-shadow);
}

.authFieldControl:focus,
.authField input:focus,
.authField select:focus,
.authField textarea:focus,
body.theme-index #loginBox .loginRow input:focus {
  outline: 2px solid rgba(241, 184, 62, 0.34);
  border-color: rgba(241, 184, 62, 0.54) !important;
  box-shadow: 0 0 0 4px rgba(241, 184, 62, 0.14), var(--auth-control-shadow);
}

.authFieldControl::placeholder,
.authField input::placeholder,
.authField textarea::placeholder,
body.theme-index #loginBox .loginRow input::placeholder {
  color: rgba(8, 19, 31, 0.48);
}

body.theme-reservation select option {
  background: #091119;
  color: #fff;
}

body.theme-reservation input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(0.92);
  opacity: 0.82;
  cursor: pointer;
}

body.theme-index #loginBox .authProviderActions {
  margin: 18px 0 14px;
}

.authPrimaryBtn,
.authSecondaryBtn,
body.theme-index #loginBox .authProviderBtn,
body.theme-index #loginBox #loginBtn,
body.theme-index #loginBox #openRegisterBtn,
body.theme-index #loginBox #resetPassBtn,
body.theme-index #loginBox #resendVerifyBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 18px;
  min-height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}

body.theme-index #loginBox .authProviderBtn {
  background: linear-gradient(180deg, rgba(11, 18, 29, 0.96), rgba(8, 14, 24, 0.92));
  color: #fff;
  box-shadow: 0 18px 34px rgba(2, 8, 16, 0.24);
}

.authPrimaryBtn,
body.theme-index #loginBox #loginBtn {
  background: var(--auth-primary-bg) !important;
  color: #fff;
  box-shadow: var(--auth-primary-shadow);
}

.authSecondaryBtn,
body.theme-index #loginBox #openRegisterBtn,
body.theme-index #loginBox #resetPassBtn,
body.theme-index #loginBox #resendVerifyBtn {
  background: var(--auth-secondary-bg) !important;
  color: #fff !important;
  box-shadow: none !important;
}

.authPrimaryBtn:hover,
.authSecondaryBtn:hover,
body.theme-index #loginBox .authProviderBtn:hover,
body.theme-index #loginBox #openRegisterBtn:hover,
body.theme-index #loginBox #resetPassBtn:hover,
body.theme-index #loginBox #resendVerifyBtn:hover,
body.theme-index #loginBox #loginBtn:hover {
  transform: translateY(-1px);
}

.authPrimaryBtn:disabled,
body.theme-index #loginBox #loginBtn:disabled {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

body.theme-index #loginBox .authDivider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 18px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

body.theme-index #loginBox .authDivider::before,
body.theme-index #loginBox .authDivider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
}

.authFormActions,
body.theme-index #loginBox #loginActions {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

body.theme-index #loginBox .rememberMeRow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 700;
}

body.theme-index #loginBox #rememberMe {
  width: 18px !important;
  height: 18px;
  margin: 0 !important;
  accent-color: #ef4444;
  border-radius: 4px;
}

body.theme-index #loginBox .rememberMeText {
  line-height: 1.2;
}

body.theme-index #loginBox .rememberMeHint {
  margin: -2px 0 10px;
  color: rgba(255, 255, 255, 0.46);
  font-size: 13px;
  line-height: 1.45;
  max-width: 40ch;
}

.authSecondaryActions,
body.theme-index #loginBox .loginSecondaryActions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body.theme-index #loginBox #openRegisterBtn,
body.theme-index #loginBox #resetPassBtn,
body.theme-index #loginBox #resendVerifyBtn {
  width: 100%;
  margin-top: 0;
}

body.theme-reservation #formMessage,
body.theme-index #loginBox #loginErr,
body.theme-index #loginBox #loginMsg {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  border-left: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  line-height: 1.45;
  font-weight: 700;
}

body.theme-reservation #formMessage:empty {
  display: none;
}

body.theme-reservation #formMessage:not(:empty) {
  display: block;
}

body.theme-reservation #formMessage {
  color: rgba(236, 242, 248, 0.82);
  background: rgba(255, 255, 255, 0.08);
}

body.theme-reservation #formMessage.error,
body.theme-index #loginBox #loginErr {
  background: rgba(127, 29, 29, 0.28);
  border-color: rgba(248, 113, 113, 0.34);
  color: #ffd8d8;
}

body.theme-reservation #formMessage.success,
body.theme-index #loginBox #loginMsg {
  background: rgba(20, 83, 45, 0.28);
  border-color: rgba(74, 222, 128, 0.32);
  color: #d6f5dd;
}

@media (max-width: 980px) {
  .authStage,
  body.theme-index #loginOverlay {
    padding: 16px;
  }

  .authCard,
  body.theme-index #loginBox {
    width: min(760px, 96vw);
    min-height: auto;
  }

  .authShell,
  body.theme-index #loginBox .loginShell {
    grid-template-columns: 1fr;
  }

  .authFormPanel,
  body.theme-index #loginBox .loginFormPanel {
    order: -1;
  }

  .authShowcase,
  body.theme-index #loginBox .loginShowcase,
  .authFormPanel,
  body.theme-index #loginBox .loginFormPanel {
    padding: 28px 24px;
  }

  .authShowcase,
  body.theme-index #loginBox .loginShowcase {
    border-right: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .authHeading,
  body.theme-index #loginBox .loginFormPanel h2,
  .authLeadShowcase,
  body.theme-index #loginBox .loginShowcaseLead,
  .authLeadForm,
  body.theme-index #loginBox .loginFormLead {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .authStage,
  body.theme-index #loginOverlay {
    padding: 12px;
  }

  .authCard,
  body.theme-index #loginBox {
    width: min(100%, 96vw);
    border-radius: 26px;
  }

  .authBrandName,
  body.theme-index #loginBox .loginBrandName {
    font-size: 34px;
  }

  .authLogoFrame,
  body.theme-index #loginBox .loginLogoFrame {
    width: 146px;
    height: 80px;
    padding: 8px 10px;
  }

  .authLogo,
  body.theme-index #loginBox #loginLogo {
    height: 70px;
  }

  .authHeading,
  body.theme-index #loginBox .loginFormPanel h2 {
    font-size: 34px;
  }

  .authSecondaryActions,
  body.theme-index #loginBox .loginSecondaryActions {
    grid-template-columns: 1fr;
  }
}
