/* Login / auth — escopo .account-auth-app */
body.account-auth {
  background: #f4f6f8;
}

.account-auth-app {
  --auth-fs-title: 1.35rem;
  --auth-fs-subtitle: 0.8125rem;
  --auth-fs-label: 0.75rem;
  --auth-fs-input: 0.8125rem;
  --auth-fs-btn: 0.875rem;
  --auth-fs-body: 0.75rem;
  --auth-fs-micro: 0.6875rem;
}

.account-auth-app .page-content.account-auth-page-wrap {
  padding: 0 16px 32px;
  max-width: none;
}

/* Header login = mesmo layout horizontal da home */
.account-auth-app .home-header {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  min-height: 52px;
  height: auto;
  padding: 10px 16px 8px !important;
  max-width: 1180px;
  margin: 0 auto 0 !important;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 0;
}

.account-auth-app .home-brand {
  display: flex !important;
  align-items: center !important;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
  text-decoration: none;
  color: #101828;
}

.account-auth-app .home-brand__mark {
  flex-shrink: 0;
  width: auto;
  height: 36px;
  max-width: 112px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.account-auth-app .home-brand__mark--default {
  width: 36px;
  height: 36px;
  max-width: 36px;
  border-radius: 50%;
  background: #16a34a;
  color: #fff;
  font-size: 0.95rem;
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.25);
}

.account-auth-app .home-brand__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 36px;
  object-fit: contain !important;
}

.account-auth-app .home-brand__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.account-auth-app .home-header-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0;
}

.account-auth-app #vue-cart-preview.top-menu--home-minimal {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.account-auth-app #vue-cart-preview.top-menu--home-minimal > li {
  display: block !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  float: none !important;
}

/* Vue/cart fora do fluxo visual do header (mantém lógica) */
.account-auth-app #vue-cart-preview.top-menu--home-minimal > :not(li) {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  pointer-events: none;
}

.account-auth-app .home-header-actions ul.top-menu--home-minimal a,
.account-auth-app .home-header-actions .notification-dropdown > .btn,
.account-auth-app .home-top-notif-btn {
  padding: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

.account-auth-app .home-top-notif .notification-dropdown {
  float: none !important;
  position: static !important;
}

.account-auth {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 8px 0 24px;
  box-sizing: border-box;
}

.account-auth__hero {
  text-align: center;
  margin-bottom: 20px;
}

.account-auth__hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: #ecfdf3;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.account-auth__title {
  margin: 0 0 6px;
  font-size: var(--auth-fs-title);
  font-weight: 700;
  color: #101828;
  letter-spacing: -0.02em;
}

.account-auth__subtitle {
  margin: 0;
  font-size: var(--auth-fs-subtitle);
  color: #667085;
  line-height: 1.4;
}

.account-auth__card {
  background: #fff;
  border: 1px solid #eef2f6;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(16, 24, 40, 0.06);
  padding: 24px 20px 20px;
  margin-bottom: 20px;
}

.account-auth__forms {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.account-auth__form {
  margin: 0;
}

.auth-field {
  margin-bottom: 14px;
}

.auth-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: var(--auth-fs-label);
  font-weight: 600;
  color: #344054;
}

.auth-field__control {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-field__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #98a2b3;
  font-size: 0.9rem;
  line-height: 1;
  pointer-events: none;
  z-index: 1;
}

.auth-field__input {
  width: 100%;
  height: 46px;
  padding: 0 44px 0 42px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  font-size: var(--auth-fs-input) !important;
  color: #101828 !important;
  background: #fff !important;
  box-shadow: none !important;
}

.auth-field__input::placeholder {
  color: #98a2b3;
  font-size: var(--auth-fs-input);
}

.auth-field__input:focus {
  border-color: #86efac !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
}

.account-auth .change_field_password .auth-field__toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  bottom: auto;
  padding: 4px;
  color: #98a2b3;
  z-index: 2;
}

.account-auth .change_field_password .auth-field__toggle:hover {
  color: #16a34a;
}

.account-auth__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}

.account-auth__row--otp {
  margin-top: 12px;
}

.account-auth__remember .custom-control-label {
  font-size: var(--auth-fs-body);
  color: #344054;
  line-height: 1.3;
}

.account-auth__forgot {
  font-size: var(--auth-fs-body);
  font-weight: 600;
  color: #16a34a;
  text-decoration: none;
  white-space: nowrap;
}

.account-auth__forgot:hover {
  color: #15803d;
  text-decoration: underline;
}

.account-auth__alert {
  margin-bottom: 14px;
  font-size: var(--auth-fs-body);
  border-radius: 10px;
}

.account-auth__submit {
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: #22c55e !important;
  color: #fff !important;
  font-size: var(--auth-fs-btn);
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px rgba(34, 197, 94, 0.35);
}

.account-auth__submit:hover:not(:disabled) {
  background: #16a34a !important;
  color: #fff !important;
}

.account-auth__submit:disabled {
  opacity: 0.55;
}

.account-auth__signup {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid #f2f4f7;
  text-align: center;
  font-size: var(--auth-fs-body);
  color: #667085;
}

.account-auth__signup a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.account-auth__signup a:hover {
  text-decoration: underline;
}

.account-auth__guest {
  margin-top: 12px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  color: #344054;
  font-size: var(--auth-fs-input);
  font-weight: 600;
}

.account-auth__otp-type {
  margin-bottom: 14px;
}

.account-auth__otp-wait {
  font-size: var(--auth-fs-body);
  color: #667085;
  margin-bottom: 10px;
}

.account-auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
  font-size: var(--auth-fs-micro);
  color: #98a2b3;
  text-align: center;
}

.account-auth__divider::before,
.account-auth__divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #e5e7eb;
}

.account-auth__divider span {
  flex-shrink: 0;
  padding: 0 4px;
}

.account-auth__social-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.account-auth__social-row:has(.auth-social-btn:only-child) {
  grid-template-columns: 1fr;
  max-width: 200px;
  margin: 0 auto;
}

.auth-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
  color: #344054;
  font-size: var(--auth-fs-input);
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.auth-social-btn:hover {
  border-color: #d1d5db;
  box-shadow: 0 2px 8px rgba(16, 24, 40, 0.06);
}

.auth-social-btn__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

.auth-social-btn__icon--google {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23FFC107' d='M43.611 20.083H42V20H24v8h11.303C33.654 32.657 29.273 36 24 36c-6.627 0-12-5.373-12-12s5.373-12 12-12c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C33.64 6.053 28.991 4 24 4 12.955 4 4 12.955 4 24s8.955 20 20 20 20-8.955 20-20c0-1.341-.138-2.65-.389-3.917z'/%3E%3Cpath fill='%23FF3D00' d='M6.306 14.691l6.571 4.819C14.655 16.108 18.961 13 24 13c3.059 0 5.842 1.154 7.961 3.039l5.657-5.657C33.64 6.053 28.991 4 24 4 16.318 4 9.656 8.337 6.306 14.691z'/%3E%3Cpath fill='%234CAF50' d='M24 44c5.166 0 9.86-1.977 13.409-5.192l-6.19-5.238C29.211 35.091 26.715 36 24 36c-5.202 0-9.619-3.317-11.283-7.946l-6.522 5.025C9.505 39.556 16.227 44 24 44z'/%3E%3Cpath fill='%231976D2' d='M43.611 20.083H42V20H24v8h11.303c1.149 3.413 4.397 5.808 8.697 5.808 2.402 0 4.582-.92 6.233-2.417l6.19 5.238C36.971 41.205 30.999 44 24 44c-7.773 0-14.227-4.977-16.694-11.917z'/%3E%3C/svg%3E");
}

.auth-social-btn__icon--apple {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23101828' d='M17.05 20.28c-.98.95-2.05 1.88-3.51 1.9-1.46.02-1.93-.86-3.6-.86-1.67 0-2.19.84-3.57.88-1.38.04-2.43-1.24-3.41-2.18-1.85-1.9-3.27-5.38-1.37-7.73 1.34-1.58 3.35-2.51 5.28-2.53 1.3-.02 2.53.87 3.6.87 1.07 0 3.07-1.07 5.18-.91.88.04 3.35.35 4.93 2.65-.13.08-2.95 1.72-2.92 5.13.03 4.09 3.58 5.45 3.63 5.47-.03.09-.56 1.92-1.74 3.81zM14.02 4.2c.73-.89 1.22-2.12 1.09-3.35-1.05.04-2.32.7-3.08 1.58-.68.78-1.27 2.03-1.11 3.23 1.18.09 2.38-.6 3.1-1.46z'/%3E%3C/svg%3E");
}

.account-auth__providers {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.account-auth__providers .fullwidth-child,
.account-auth__providers .social-login {
  min-height: 44px;
}

.account-auth__secure {
  text-align: center;
  margin-top: 20px;
  padding: 0 8px;
}

.account-auth__secure-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 6px;
  border-radius: 50%;
  background: #ecfdf3;
  color: #16a34a;
  font-size: var(--auth-fs-micro);
}

.account-auth__secure p {
  margin: 0;
  font-size: var(--auth-fs-micro);
  color: #98a2b3;
  line-height: 1.4;
}

/* Esconde layout legado */
.account-auth-app .login-container {
  width: 100%;
  max-width: none;
  padding: 0;
}

@media (min-width: 768px) {
  .account-auth {
    max-width: 440px;
    padding-top: 16px;
  }

  .account-auth__card {
    padding: 28px 28px 24px;
  }
}

@media (min-width: 1024px) {
  .account-auth {
    max-width: 460px;
    padding-top: 24px;
  }
}

/* —— Signup —— */
body.account-auth-signup {
  background: #f4f6f8;
}

.account-auth-app.account-auth-app .page-content.account-auth-page-wrap {
  position: relative;
  overflow: hidden;
}

.account-auth--signup {
  position: relative;
  max-width: 440px;
  padding: 12px 0 28px;
}

.account-auth__bg {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.account-auth__blob {
  position: absolute;
  border-radius: 50%;
  background: rgba(187, 247, 208, 0.35);
}

.account-auth__blob--tl {
  width: 280px;
  height: 280px;
  top: -80px;
  left: -100px;
}

.account-auth__blob--br {
  width: 320px;
  height: 320px;
  right: -120px;
  bottom: -100px;
}

.account-auth__card--signup {
  position: relative;
  z-index: 1;
  padding: 22px 20px 18px;
}

.account-auth__card--signup > .account-auth__badge {
  display: flex;
  justify-content: center;
  width: 100%;
}

.account-auth__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #16a34a;
  font-size: var(--auth-fs-micro);
  font-weight: 600;
  line-height: 1.2;
}

.account-auth__badge i {
  font-size: 0.625rem;
}

.account-auth__hero--signup {
  text-align: center;
  margin-bottom: 18px;
}

.account-auth__hero--signup .account-auth__title {
  font-size: 1.25rem;
  margin-bottom: 8px;
}

.account-auth__hero--signup .account-auth__subtitle {
  font-size: var(--auth-fs-body);
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

.auth-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 0;
}

.auth-field--half {
  min-width: 0;
}

.account-auth__submit--arrow span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-auth__submit--arrow .fa-arrow-right {
  font-size: 0.8rem;
}

.account-auth__card-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 14px 0 0;
  font-size: var(--auth-fs-micro);
  color: #667085;
  text-align: center;
  line-height: 1.35;
}

.account-auth__card-secure i {
  color: #16a34a;
  font-size: 0.75rem;
}

.account-auth__login-link {
  margin: 20px 0 0;
  text-align: center;
  font-size: var(--auth-fs-body);
  color: #667085;
}

.account-auth__login-link a {
  color: #16a34a;
  font-weight: 700;
  text-decoration: none;
  margin-left: 4px;
}

.account-auth__login-link a:hover {
  text-decoration: underline;
}

.account-auth__terms {
  margin: 12px 0 4px;
  font-size: var(--auth-fs-micro);
  color: #667085;
  line-height: 1.4;
}

/* Phone field inside auth layout */
.account-auth--signup .auth-field--phone {
  margin-bottom: 14px;
}

.account-auth--signup .auth-field__control--phone {
  display: block;
  position: relative;
  padding-left: 0;
}

.account-auth--signup .auth-field__icon--phone {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  color: #16a34a;
}

.account-auth--signup .auth-field__control--phone .inputs-with-dropdown {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  min-height: 46px;
  margin: 0 !important;
  padding: 0 12px 0 42px !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-sizing: border-box;
}

.account-auth--signup .auth-field__control--phone .inputs-with-dropdown:focus-within {
  border-color: #86efac !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.12) !important;
}

.account-auth--signup .auth-field__control--phone .dropdown-toggle {
  border: 0;
  background: transparent;
  padding: 0 6px 0 0;
  box-shadow: none;
}

.account-auth--signup .auth-field__control--phone .dropdown-toggle img {
  width: 22px;
  height: auto;
}

.account-auth--signup .auth-field__control--phone .inputs-with-dropdown > div {
  font-size: var(--auth-fs-input);
  font-weight: 600;
  color: #344054;
  white-space: nowrap;
}

.account-auth--signup .auth-field__control--phone .inputs-with-dropdown input {
  flex: 1;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  height: 44px;
  padding: 0 0 0 8px !important;
  font-size: var(--auth-fs-input) !important;
  box-shadow: none !important;
}

.account-auth--signup .auth-field__control--phone .inputs-with-dropdown input:focus {
  outline: none;
}

/* Signup header */
.account-auth-app .home-header--signup .home-brand--stacked {
  align-items: center;
  gap: 10px;
}

.account-auth-app .home-brand__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.15;
}

.account-auth-app .home-brand__title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #101828;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-auth-app .home-brand__tagline {
  font-size: 10px;
  font-weight: 500;
  color: #667085;
}

.account-auth-app .home-header__safe {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--auth-fs-micro);
  font-weight: 600;
  color: #16a34a;
  white-space: nowrap;
}

.account-auth-app .home-header__safe i {
  font-size: 0.85rem;
}

.account-auth-app .home-header-actions--signup {
  flex: 0 0 auto;
}

@media (max-width: 380px) {
  .auth-field-row {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .account-auth--signup {
    max-width: 460px;
    padding-top: 20px;
  }

  .account-auth__card--signup {
    padding: 26px 28px 22px;
  }
}
