:root {
  font-family: "Montserrat", Arial, sans-serif;
  color: #111111;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: #ffffff; }
button, input { font: inherit; }
.app-shell { width: 100%; max-width: 412px; min-height: 100vh; margin: 0 auto; padding: 10px 8px 24px; background: #ffffff; }

/* Login: composição reaproveitada da tela Page Main do Barra Bar. */
.login-shell { padding: 4px 8px 20px; }
.login-screen { min-height: calc(100vh - 24px); display: flex; flex-direction: column; gap: 20px; }
.welcome-wallpaper {
  position: relative; flex: 1 1 auto; min-height: 390px; border: 1px solid #111111;
  border-radius: 32px; overflow: hidden; display: flex; align-items: flex-end;
  justify-content: center; padding: 30px 32px;
  background-image: linear-gradient(180deg, rgba(0,0,0,.02), rgba(0,0,0,.3)), url("assets/images/welcome-cocktail.jpg");
  background-size: cover; background-position: center;
  box-shadow: 0 4px 4px rgba(0,0,0,.1);
}
.welcome-title { width: 100%; margin: 0; color: #ffffff; font-size: 32px; line-height: 1.15; font-weight: 600; }
.login-fields { display: flex; flex-direction: column; gap: 16px; }
.login-field { display: flex; align-items: center; height: 56px; border: 1px solid #949494; border-radius: 8px; padding: 8px 16px; }
.login-field input { width: 100%; border: 0; outline: 0; background: transparent; font-size: 16px; color: #313131; }
.login-field input::placeholder { color: #5e5e5e; opacity: 1; }
.password-wrap { display: flex; flex-direction: column; gap: 8px; }
.forgot-password { align-self: flex-end; border: 0; padding: 0; background: transparent; color: #313131; font-size: 12px; cursor: pointer; }
.main-login { width: 100%; height: 56px; border: 0; border-radius: 16px; padding: 10px 20px; background: #9049fd; color: #fdfdfd; font-size: 14px; font-weight: 500; cursor: pointer; }
.login-form-message { min-height: 16px; margin: -8px 0; padding: 0 4px; color: #b42318; font-size: 12px; }

/* AppBar administrativa: mantém o componente original, sem ações ou seletor de bares. */
.home-topbar {
  min-height: 64px; border-radius: 100px; background: #fafafa; display: flex;
  align-items: center; gap: 16px; padding: 8px; margin: 0 0 18px;
  box-shadow: 0 1px 3px rgba(0,0,0,.15), 0 1px 2px rgba(0,0,0,.18);
}
.home-user { display: flex; align-items: center; gap: 8px; flex: 1 1 auto; min-width: 0; }
.home-avatar { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 50%; object-fit: cover; background: #e9e3df; }
.home-user-copy { display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0; }
.home-user-copy strong { overflow: hidden; color: #111111; font-size: 18px; line-height: 20px; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; }
.home-user-copy span { color: #111111; font-size: 14px; line-height: 16px; font-weight: 500; }

/* Widget de atalhos: medidas e estilo extraídos do componente existente. */
.home-content { width: 100%; }
.section-heading { display: flex; align-items: center; justify-content: space-between; color: #111111; }
.shortcuts-heading { min-height: 32px; gap: 16px; margin: 0 0 16px; font-size: 14px; font-weight: 600; line-height: 24px; }
.more-shortcuts { display: grid; place-items: center; flex: 0 0 28px; width: 28px; height: 32px; padding: 6px 4px; border: 0; border-radius: 100px; background: #fafafa; }
.more-shortcuts img { width: 20px; height: 20px; }
.shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 186px)); gap: 8px; width: 100%; }
.shortcut {
  display: flex; align-items: center; gap: 8px; width: 186px; min-width: 0; height: 56px;
  padding: 12px 8px; overflow: hidden; border: 0; border-radius: 8px; background: #fafafa;
  box-shadow: 0 0.2px 0.2px 0 #949494; text-align: left; white-space: nowrap;
  font-family: "Montserrat", Arial, sans-serif; font-size: 14px; font-weight: 500; line-height: 24px;
}
.shortcut:disabled { color: #111111; opacity: 1; cursor: default; }
.shortcut-icon { display: grid; place-items: center; flex: 0 0 32px; width: 32px; height: 32px; padding: 2px; border: 0; border-radius: 50%; background: #fdfdfd; }
.shortcut-icon img { display: block; width: 24px; height: 24px; }

@media (max-width: 411px) { .shortcut-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .shortcut { width: 100%; } }
@media (max-width: 360px) { .shortcut { gap: 6px; font-size: 12px; } .shortcut-grid { gap: 8px; } }
@media (max-height: 760px) { .welcome-wallpaper { min-height: 300px; } .login-screen { min-height: auto; } }

/* Ação de encerramento da sessão administrativa. */
.admin-logout {
  display: block;
  margin: 28px 0 0 auto;
  padding: 10px 16px;
  border: 1px solid #949494;
  border-radius: 100px;
  background: #ffffff;
  color: #313131;
  font-family: "Montserrat", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.admin-logout:disabled { opacity: .6; cursor: wait; }
.main-login:disabled { opacity: .7; cursor: wait; }


/* Registro de produto global — tela Page Estoque_Registro do Figma. */
.register-shell {
  width: 100%;
  max-width: 412px;
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 16px 32px;
  background: #ffffff;
}
.register-topbar {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 100px;
  background: #f6f6f6;
}
.register-back {
  display: grid;
  place-items: center;
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #111111;
  text-decoration: none;
}
.register-back::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateX(3px) rotate(45deg);
}
.register-topbar-title {
  flex: 1 1 auto;
  margin: 0;
  color: #111111;
  font-size: 22px;
  line-height: 28px;
  font-weight: 500;
  text-align: center;
}
.register-avatar {
  display: block;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin: 0 12px;
  border-radius: 50%;
  object-fit: cover;
}
.register-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  margin-top: 22px;
}
.register-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
}
.register-heading h1 {
  margin: 0;
  color: #111111;
  font-size: 16px;
  line-height: 24px;
  font-weight: 600;
}
.register-categories {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-width: 0;
}
.register-category-arrow {
  display: grid;
  place-items: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  color: #313131;
  font-size: 23px;
  line-height: 1;
}
.register-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  height: 32px;
  padding: 8px 16px;
  border: .5px solid rgba(49,49,49,.25);
  border-radius: 8px;
  background: #fdfdfd;
  color: #111111;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  white-space: nowrap;
}
.register-chip.is-active {
  gap: 8px;
  padding-left: 8px;
  padding-right: 16px;
  background: rgba(227,210,255,.7);
}
.register-chip img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}
.register-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}
.register-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  height: 56px;
  min-width: 0;
  padding: 8px 16px;
  border: 1px solid #949494;
  border-radius: 8px;
  background: #ffffff;
}
.register-field label {
  display: block;
  margin: 0;
  color: #111111;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
}
.register-field input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111111;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
}
.register-field input::placeholder { color: #777777; opacity: 1; }
.register-input-with-suffix {
  display: flex;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
  height: 24px;
}
.register-input-with-suffix input { flex: 1 1 auto; width: 1%; }
.register-field-suffix {
  flex: 0 0 auto;
  color: #111111;
  font-size: 16px;
  line-height: 24px;
  font-weight: 500;
  white-space: nowrap;
}
.register-field:focus-within { border-color: #313131; }
.register-field-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  width: 100%;
}
.register-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  width: 100%;
  margin-top: 0;
}
.register-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 40px;
  padding: 10px 16px;
  border: 0;
  border-radius: 100px;
  background: #e3d2ff;
  color: #313131;
  font-size: 12px;
  line-height: 16px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
}
.register-feedback {
  min-height: 16px;
  margin: -8px 0 0;
  color: #313131;
  font-size: 12px;
  line-height: 16px;
}
.shortcut[href] { color: #111111; text-decoration: none; cursor: pointer; }
.shortcut[href]:focus-visible, .register-action:focus-visible, .register-back:focus-visible {
  outline: 2px solid #6f00ff;
  outline-offset: 3px;
}
@media (max-width: 360px) {
  .register-shell { padding-right: 12px; padding-left: 12px; }
  .register-categories { gap: 5px; }
  .register-chip { padding-right: 10px; padding-left: 10px; font-size: 12px; }
  .register-chip.is-active { padding-right: 10px; padding-left: 7px; }
  .register-fields, .register-field-row { gap: 12px; }
}
.register-feedback.is-error { color: #b42318; }
.register-feedback.is-success { color: #237a45; }
