.popup-bed {
    position: fixed;
    inset: 0;
    z-index: 2147483000 !important;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(28px, env(safe-area-inset-top)) 18px max(28px, env(safe-area-inset-bottom));
    box-sizing: border-box;
    background: rgba(15, 23, 42, 0.38);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}



.popup-auth {
  position: relative;
  padding: 0;
  z-index: 5;
  border-radius: 22px;
  margin: auto; 
  top: 0; 
  bottom: 0; 
  left: 0; 
  right: 0;
  top: 0;
  max-width: 430px;
  width: min(430px, calc(100vw - 36px));
  height: auto;
  min-height: 306px;
  max-height: calc(100dvh - 56px);
  background-color: white;
  box-sizing: border-box;
  transition: opacity 0.6s ease, transform 0.3s ease;
  transform: translateY(0);
  opacity: 1;
  font-family: "Inter", sans-serif;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 28px 84px rgba(15, 23, 42, 0.18);
}


.popup-auth.init {
opacity: 0;
transform: translateY(25px);
}

.popup-auth.has-legal-consent {
  min-height: 434px;
}

.popup-auth.is-login-only {
  min-height: 318px;
}

.popup-auth h4 {
margin: 0 0 12px;
font-size: 24px;
line-height: 1.08;
font-weight: 680;
letter-spacing: -0.02em;
} 

.popup-auth h4 img {
    vertical-align: middle;
    margin-left: 5px;
    margin-bottom: 0;
    width: 20px;
    height: auto;
    object-fit: contain;
}

.popup-auth p {
    margin: 0 0 24px;
    font-weight: 400;
    color: #667085;
    font-size: 14px;
    line-height: 1.52;
}

.popup-auth a {
color: #666;
}

.close-popup-auth {
    position: absolute !important;
    top: 16px !important;
    right: 16px !important;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 999px;
    background: #f8fafc;
    color: #667085;
    font-size: 12px;
    line-height: 1;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.close-popup-auth:hover,
.close-popup-auth:focus-visible {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
    color: #111827;
    outline: 0;
    transform: translateY(-1px);
}

.bt-google {
  width: 237px; /* Ajuste a largura conforme necessário */
  margin: auto;
  text-align: center;
  border-radius: 999px;
  overflow: hidden;
}

.bt-google .g_id_signin {
    position: relative;
    text-align: center;
    width: 100%;
    font-family: "Inter", sans-serif;
    font-size: 14px;
}

.bt-google .g_id_signin div {
    background-color: transparent;
    text-align: center;
    width: 100%;
    border-radius: 999px;
    overflow: hidden;
}

.bt-google .g_id_signin div:hover div {
    background-color: transparent;
    border-color: #999;
}

.bt-google .g_id_signin span {
    text-align: center;
    font-family: "Inter", sans-serif;
    color: #333;
    font-size: 14px;
    font-weight: 400;

}


.bt-email {
    margin-top: 0;
    padding: 0 16px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: rgba(248, 250, 252, 0.94);
    color: #111827;
    font-size: 14px;
    font-weight: 650;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.bt-email:hover {
    background: #fff;
    border-color: rgba(15, 23, 42, 0.14);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.auth-actions {
    position: relative;
    display: grid;
    gap: 13px;
    transition: opacity 0.18s ease, filter 0.18s ease;
}

.auth-actions.is-disabled {
    opacity: 0.58;
    filter: grayscale(0.2);
}

.auth-actions.is-disabled .bt-google,
.auth-actions.is-disabled .bt-email {
    pointer-events: none;
}

.auth-consent {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 9px;
    align-items: flex-start;
    margin: 20px 0 12px;
    padding: 13px;
    border: 1px solid #e4e7ec;
    border-radius: 14px;
    background: #fcfcfd;
    color: #555;
    font-size: 12px;
    line-height: 1.45;
    cursor: pointer;
}

.auth-consent.needs-attention {
    border-color: #fda29b;
    box-shadow: 0 0 0 3px rgba(217,45,32,0.08);
}

.auth-consent input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.auth-consent-box {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
    background: #fff;
}

.auth-consent-box::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 10px;
    border: solid #fff;
    border-width: 0 2px 2px 0;
    opacity: 0;
    transform: translate(-50%, -56%) rotate(45deg);
}

.auth-consent input:checked + .auth-consent-box {
    border-color: #111827;
    background: #111827;
}

.auth-consent input:checked + .auth-consent-box::after {
    opacity: 1;
}

.auth-consent-error {
    display: none;
    margin: 0 0 10px;
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
}

.auth-error {
    display: none;
    margin: 12px 0 18px;
    padding: 12px 14px;
    border: 1px solid #fecdca;
    border-radius: 12px;
    background: #fef3f2;
    color: #b42318;
    font-size: 13px;
    line-height: 1.5;
    font-weight: 500;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.auth-login-switch,
.auth-signup-switch {
    display: block;
    width: 100%;
    margin: 18px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #555;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.45;
    letter-spacing: 0;
    word-spacing: 1px;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.auth-login-switch:hover,
.auth-signup-switch:hover {
    color: #111827;
    text-decoration: none;
}

.auth-start-error {
    display: none;
    margin: 16px 0 0;
    padding: 10px 11px;
    border: 1px solid rgba(180, 35, 24, 0.16);
    border-radius: 10px;
    background: rgba(254, 243, 242, 0.92);
    color: #b42318;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 600;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: anywhere;
    word-break: normal;
}

.auth-et1 {
    position: absolute;
    padding: 38px 38px 28px;
    top: 0; 
    left: 0;
}

.auth-et2 {
    position: absolute;
    inset: 0;
    min-height: 100%;
    height: 100%;
    padding: 38px 38px 28px;
    transform: translateX(110%);
}

.auth-et3 {
    position: absolute;
    inset: 0;
    padding: 38px 38px 28px;
    min-height: 100%;
    height: 100%;
    transform: translateX(110%);
}

.auth-et1, .auth-et2, .auth-et3 {
  width: 100%;
  box-sizing: border-box;
  transition: transform 0.3s ease;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.shift-left {
  transform: translateX(-110%);
}

.shift-right {
  transform: translateX(0);
}

.shift-left2 {
  transform: translateX(-110%);
}

.shift-right2 {
  transform: translateX(0);
}

.btnx button {
    display: inline-block;
}

.auth-et2 .btnx, 
.auth-et3 .btnx {
    position: static;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: auto;
    padding-top: 10px;
} 

.in-field,
.auth-et2 .in-field {
    position: relative;
    width: 100%;
    height: 48px;
}

.in-field  input,
.auth-et2 input {
    padding: 13px 14px;
    width: 100%;
    height: 48px;
    box-sizing: border-box;
    border: 1px solid rgba(15, 23, 42, 0.10);
    border-radius: 14px;
    font-size: 14px;
    background-color: #f8fafc;
    color: #111827;
    outline: 0;
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.in-field input:focus,
.auth-et2 input:focus {
    background: #fff;
    border-color: rgba(17, 24, 39, 0.24);
    box-shadow: 0 0 0 4px rgba(17, 24, 39, 0.06);
}

.in-field {
    margin-bottom: 8px;
}

.auth-et3 button.back2,
.auth-et2 button.back {
    border: none;
    color: #333;
}



.auth-et3 button.back2:hover,
.auth-et2 button.back:hover {
    text-decoration: underline;
}

.auth-et3 button.done,
.auth-et2 button.submit {
    border: 1px solid gainsboro;
    color: gainsboro;
}

.auth-et2 button.submit.active,
.auth-et3 button.done.active {
    border: 1px solid #111827;
    background: #111827;
    color: #fff;
    box-shadow: 0 14px 30px rgba(17, 24, 39, 0.14);
}

.auth-et2 button, 
.auth-et3 button {
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 650;
    font-family: "Inter", sans-serif;
    width: auto;
    height: auto;
    background-color: white;
}

body.higen-theme-dark .popup-auth {
    background: #11131a;
    color: #f4f7fb;
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

html.higen-theme-dark .popup-auth {
    background: #11131a;
    color: #f4f7fb;
    border-color: rgba(255, 255, 255, 0.11);
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.56);
}

html.higen-theme-dark .popup-bed {
    background: rgba(0, 0, 0, 0.58);
}

html.higen-theme-dark .auth-error,
html.higen-theme-dark .auth-start-error {
    background: rgba(127, 29, 29, 0.24) !important;
    border-color: rgba(248, 113, 113, 0.32) !important;
    color: #fecaca !important;
}

body.higen-theme-dark .popup-auth h4 {
    color: #f8fafc;
}

body.higen-theme-dark .popup-auth p {
    color: #d6deea;
}

body.higen-theme-dark .popup-auth a {
    color: #f4f7fb;
}

body.higen-theme-dark .close-popup-auth {
    color: #f8fafc;
    opacity: 0.82;
}

body.higen-theme-dark .bt-email {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f4f7fb;
}

body.higen-theme-dark .bt-email:hover {
    background: rgba(255, 255, 255, 0.12);
    text-decoration: none;
}

body.higen-theme-dark .auth-actions.is-disabled {
    opacity: 1;
    filter: none;
}

body.higen-theme-dark .auth-actions.is-disabled .bt-google,
body.higen-theme-dark .auth-actions.is-disabled .bt-email {
    opacity: 0.52;
}

body.higen-theme-dark .auth-consent {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #d6deea;
}

body.higen-theme-dark .auth-consent a {
    color: #f8fafc;
}

body.higen-theme-dark .auth-consent-box {
    background: #171a23;
    border-color: rgba(255, 255, 255, 0.24);
}

body.higen-theme-dark .auth-consent input:checked + .auth-consent-box {
    border-color: #f8fafc;
    background: #f8fafc;
}

body.higen-theme-dark .auth-consent input:checked + .auth-consent-box::after {
    border-color: #111827;
}

body.higen-theme-dark .auth-login-switch,
body.higen-theme-dark .auth-signup-switch,
html.higen-theme-dark .auth-login-switch,
html.higen-theme-dark .auth-signup-switch {
    color: #f4f7fb;
}

body.higen-theme-dark .auth-login-switch:hover,
body.higen-theme-dark .auth-signup-switch:hover,
html.higen-theme-dark .auth-login-switch:hover,
html.higen-theme-dark .auth-signup-switch:hover {
    color: #ffffff;
}

body.higen-theme-dark .auth-et2 input {
    background: #171a23;
    color: #f4f7fb;
    border-color: rgba(255, 255, 255, 0.14);
}

body.higen-theme-dark .auth-et2 input::placeholder {
    color: #8b96a8;
}

body.higen-theme-dark .auth-et2 button,
body.higen-theme-dark .auth-et3 button {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
    color: #f4f7fb;
}

body.higen-theme-dark .auth-et2 button.submit {
    color: #8b96a8;
}

body.higen-theme-dark .auth-et2 button.submit.active,
body.higen-theme-dark .auth-et3 button.done.active {
    background: #f8fafc;
    border-color: #f8fafc;
    color: #111827;
}

body.home-teste-mode .popup-auth {
    max-width: 452px;
    width: min(452px, calc(100vw - 36px));
    min-height: 432px;
    border-radius: 24px;
}

body.home-teste-mode .popup-auth.has-legal-consent {
    min-height: 444px;
}

body.home-teste-mode .popup-auth.is-login-only {
    min-height: 356px;
}

body.home-teste-mode .popup-auth .auth-et1 {
    display: flex;
    flex-direction: column;
    padding: 40px 40px 28px;
}

body.home-teste-mode .popup-auth .auth-et2,
body.home-teste-mode .popup-auth .auth-et3 {
    display: flex;
    flex-direction: column;
    padding: 40px 40px 28px;
}

body.home-teste-mode .popup-auth .auth-error,
body.home-teste-mode .popup-auth .auth-start-error,
body.home-teste-mode .popup-auth .auth-consent-error {
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
    overflow-wrap: anywhere;
}

body.home-teste-mode .popup-auth .auth-error {
    margin: 14px 0 20px;
}

body.home-teste-mode .popup-auth .auth-start-error {
    order: 20;
    margin: 14px 0 2px;
    padding: 11px 12px;
    border-radius: 12px;
}

body.home-teste-mode .popup-auth .auth-consent-error {
    margin: 6px 0 12px;
}

body.home-teste-mode .popup-auth .auth-login-switch,
body.home-teste-mode .popup-auth .auth-signup-switch {
    order: 30;
    margin-top: 14px;
}

body.home-teste-mode .popup-auth h4 {
    margin: 2px 0 12px;
    font-size: 25px;
    line-height: 1.08;
    font-weight: 700;
}

body.home-teste-mode .popup-auth p {
    max-width: 340px;
    margin-bottom: 26px;
    font-size: 14.5px;
    line-height: 1.55;
}

body.home-teste-mode .popup-auth .auth-actions {
    display: grid;
    gap: 12px;
}

body.home-teste-mode .popup-auth .bt-google {
    width: 100%;
    margin: 0;
}

body.home-teste-mode .popup-auth .bt-email {
    min-height: 48px;
    margin-top: 0;
    max-width: 100%;
}

body.home-teste-mode .popup-auth .auth-actions.is-disabled .bt-email,
body.home-teste-mode .popup-auth .auth-actions.is-disabled .bt-google {
    opacity: 0.68;
}

body.home-teste-mode .popup-auth .auth-consent {
    margin-top: 22px;
    padding: 13px;
    border-radius: 14px;
}

body.home-teste-mode .popup-auth .close-popup-auth {
    top: 16px !important;
    right: 16px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    line-height: 1;
}

html.higen-theme-dark body.home-teste-mode .popup-auth p,
body.home-teste-mode.higen-theme-dark .popup-auth p {
    color: #e2e8f0;
}

html.higen-theme-dark body.home-teste-mode .popup-auth .bt-email,
body.home-teste-mode.higen-theme-dark .popup-auth .bt-email {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
    color: #f8fafc !important;
}

html.higen-theme-dark body.home-teste-mode .popup-auth .close-popup-auth,
body.home-teste-mode.higen-theme-dark .popup-auth .close-popup-auth {
    background: rgba(255, 255, 255, 0.08);
    color: #f8fafc;
}

.icon-check {
    position: absolute;
    top: 10px; 
    right: 5px;
    width: 20px;
    height: 20px;
    opacity: 0;
}

.profile-basic-popup .in-field .icon-check {
    position: static !important;
    top: auto !important;
    right: auto !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 20px;
    width: 20px;
    height: 20px;
    margin: 0 16px 0 0;
    line-height: 1;
}

.profile-basic-popup .in-field .icon-check svg {
    display: block;
    width: 18px;
    height: 18px;
}

@media screen and (max-width: 620px) {
    .popup-auth {
        width: min(430px, calc(100vw - 28px));
        min-height: 306px;
        max-height: calc(100dvh - 36px);
    }

    .popup-auth.has-legal-consent {
        min-height: 434px;
    }

    .popup-auth.is-login-only {
        min-height: 318px;
    }

    .auth-et1,
    .auth-et2,
    .auth-et3,
    body.home-teste-mode .popup-auth .auth-et1 {
        padding: 36px 26px 26px;
    }

    body.home-teste-mode .popup-auth .auth-et2,
    body.home-teste-mode .popup-auth .auth-et3 {
        padding: 36px 26px 26px;
    }

    body.home-teste-mode .popup-auth {
        width: min(452px, calc(100vw - 28px));
        min-height: 432px;
    }

    body.home-teste-mode .popup-auth.is-login-only {
        min-height: 356px;
    }
}
