.auth-panel-content #googleSigninButton {
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    max-width: 100%;
    min-width: min-content;
    height: 40px;
    margin: 0 auto;
    padding: 0 12px;
    border: 1px solid #747775;
    border-radius: 4px;
    background: #fff;
    color: #1f1f1f;
    font-family: Roboto, Arial, sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .25px;
    line-height: 20px;
    box-shadow: none;
    filter: none;
    position: relative;
    overflow: hidden;
    white-space: nowrap;
    user-select: none;
    transition: background-color .218s, border-color .218s, box-shadow .218s;
}

.auth-panel-content #googleSigninButton .gsi-material-button-icon {
    flex: 0 0 20px;
    height: 20px;
    width: 20px;
    margin-right: 12px;
    object-fit: contain;
}

.gsi-material-button-content-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: nowrap;
    height: 100%;
    width: 100%;
    position: relative;
}

.gsi-material-button-contents {
    flex-grow: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 500;
}

.gsi-material-button-state {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity .218s;
}

.auth-panel-content #googleSigninButton:hover:not(:disabled) {
    background: #fff;
    border-color: #747775;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15);
    filter: none;
}

.auth-panel-content #googleSigninButton:hover:not(:disabled) .gsi-material-button-state {
    background: #303030;
    opacity: .08;
}

.auth-panel-content #googleSigninButton:is(:active, :focus-visible):not(:disabled) .gsi-material-button-state {
    background: #303030;
    opacity: .12;
}

.auth-panel-content #googleSigninButton:focus-visible {
    outline: 3px solid #0b57d0;
    outline-offset: 3px;
}

.auth-panel-content #googleSigninButton:disabled {
    opacity: .65;
    cursor: wait;
}

@media (prefers-reduced-motion: reduce) {
    .auth-panel-content #googleSigninButton,
    .gsi-material-button-state {
        transition: none;
    }
}

.auth-form button[type="submit"] {
    margin: 8px 0 0;
}

.auth-form .auth-error {
    min-height: 0;
    margin: 4px 0 0;
}

.auth-form .auth-error:empty {
    display: none;
}

#signupDetailsForm[hidden],
#signupForm[hidden],
#signupOtpForm[hidden] {
    display: none !important;
}

.auth-form .auth-switch {
    margin: 6px 0 0;
}

.auth-form button[aria-busy="true"] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: wait;
}

.app-layout-guest {
    background:
        linear-gradient(rgba(15, 31, 28, 0.32), rgba(15, 31, 28, 0.54)),
        url("/static/auth-conversations.jpg") center / cover no-repeat;
    background-attachment: fixed;
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: button-spin 0.7s linear infinite;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .button-spinner {
        animation: none;
    }
}

@media (min-width: 761px) {
    .app-layout-guest {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        grid-template-rows: 54px minmax(0, 1fr);
        overflow: hidden;
    }

    .app-layout-guest > .shared-site-header {
        position: fixed;
        top: 0;
        left: 0;
        margin: 0;
    }

    .app-layout-guest > footer,
    .app-layout-guest .seo-intro {
        display: none;
    }

    .app-layout-guest #login.auth-card {
        max-width: 900px;
    }

    .app-layout-guest #login,
    .app-layout-guest #globalChat {
        height: 100%;
        min-height: 0;
        margin: 0;
    }

    .app-layout-guest #login {
        margin: 0;
    }

    .app-layout-guest #globalChat {
        position: fixed;
        z-index: 90;
        top: 54px;
        right: 0;
        bottom: 0;
        width: clamp(260px, 30vw, 360px);
        height: auto;
        min-height: 0;
        align-self: stretch;
    }

    .app-layout-guest .auth-card {
        height: 100%;
        min-height: 0;
        grid-template-rows: minmax(0, 1fr);
    }

    .app-layout-guest .auth-hero {
        min-height: 0;
    }

    .app-layout-guest .auth-panel-content {
        align-self: stretch;
    }

    .auth-panel-content {
        min-height: 0;
        overflow-y: auto;
    }
}

.auth-card {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 900px;
    min-height: 510px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce5e0;
    background: transparent;
}

.auth-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 510px;
    padding: clamp(28px, 4vw, 48px);
    isolation: isolate;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(8, 32, 29, 0.16) 8%, rgba(8, 32, 29, 0.46) 42%, rgba(8, 32, 29, 0.88) 100%);
}

.auth-hero::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(135deg, rgba(19, 91, 77, 0.16), transparent 56%);
    content: "";
}

.auth-hero-content {
    max-width: 440px;
    text-align: center;
}

.auth-hero-eyebrow {
    display: inline-block;
    margin-bottom: 16px;
    color: #d4f2e1;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.14em;
}

.auth-hero h2 {
    margin: 0;
    font-size: clamp(2rem, 3.6vw, 3.15rem);
    line-height: 1.08;
    letter-spacing: -0.045em;
    text-wrap: balance;
}

.auth-hero p {
    max-width: 330px;
    margin: 16px auto 22px;
    color: rgba(255, 255, 255, 0.88);
    font-size: 1rem;
    line-height: 1.6;
}

.auth-hero-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #e1f4e9;
    font-size: 0.86rem;
    font-weight: 650;
}

.auth-hero-note span {
    color: #a8e2bf;
}

.auth-panel-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(28px, 4vw, 48px);
    align-self: center;
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(14px);
}

.app-layout-guest + .site-footer {
    display: none;
}

.auth-footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: auto;
    padding: 20px 0 4px;
    color: #52635b;
    font-size: 0.82rem;
    background: transparent;
}

.auth-footer-links a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.auth-panel-content > h1 {
    margin: 0 0 18px;
    color: #173b32;
    font-size: clamp(1.7rem, 2.5vw, 2.1rem);
    line-height: 1.15;
    letter-spacing: -0.035em;
}

.auth-panel-content .auth-form label {
    color: #34443e;
    font-size: 0.92rem;
}

.auth-google-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 12px;
    color: #68766f;
    font-size: 0.75rem;
    font-weight: 700;
}

.auth-google-divider::before,
.auth-google-divider::after {
    height: 1px;
    flex: 1;
    background: rgba(75, 92, 83, 0.28);
    content: "";
}

.g_id_signin {
    display: flex;
    justify-content: center;
    min-height: 40px;
}

.auth-google-unavailable {
    margin: 10px 0;
    color: #68766f;
    font-size: 0.85rem;
    text-align: center;
}

.auth-google-cancel {
    display: block;
    margin-top: 10px;
    color: #126b61;
    text-align: center;
}

.signup-captcha {
    max-width: 100%;
    overflow-x: auto;
    padding: 4px 0;
}

.auth-panel-content .auth-form input,
.auth-panel-content .auth-form select {
    min-height: 46px;
    border-color: #d5dfda;
    background: #fbfcfb;
}

.auth-panel-content .auth-form button[type="submit"] {
    min-height: 48px;
    border-radius: 10px;
    background: #126b61;
    font-weight: 700;
}

.auth-panel-content .auth-form button[type="submit"]:hover:not(:disabled) {
    background: #0e594f;
}

.auth-panel-content .auth-switch a {
    color: #126b61;
    font-weight: 650;
}

html[data-theme="dark"] .auth-card {
    border-color: #333;
    background: transparent;
}

html[data-theme="dark"] .auth-panel-content {
    background: rgba(17, 17, 17, 0.78);
}

html[data-theme="dark"] .auth-panel-content > h1 {
    color: #e5f1eb;
}

html[data-theme="dark"] .auth-panel-content .auth-form label {
    color: #ddd;
}

html[data-theme="dark"] .auth-panel-content .auth-form input,
html[data-theme="dark"] .auth-panel-content .auth-form select {
    border-color: #444;
    background: #090909;
}

html[data-theme="dark"] .auth-panel-content .auth-switch a {
    color: #a8d5c4;
}

html[data-theme="dark"] .auth-google-divider {
    color: #aaa;
}

html[data-theme="dark"] .auth-google-divider::before,
html[data-theme="dark"] .auth-google-divider::after {
    background: rgba(190, 205, 196, 0.28);
}

html[data-theme="dark"] .auth-google-unavailable {
    color: #aaa;
}

html[data-theme="dark"] .auth-google-cancel {
    color: #a8d5c4;
}

html[data-theme="dark"] .auth-footer-links {
    color: #aaa;
    background: transparent;
}

@media (max-width: 760px) {
    .auth-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .auth-hero {
        min-height: 225px;
        padding: 26px;
    }

    .auth-hero-eyebrow {
        margin-bottom: 9px;
        font-size: 0.65rem;
    }

    .auth-hero h2 {
        max-width: 440px;
        font-size: clamp(1.8rem, 8vw, 2.5rem);
    }

    .auth-hero p {
        margin: 10px 0 0;
        font-size: 0.92rem;
    }

    .auth-hero-note {
        display: none;
    }

    .auth-panel-content {
        padding: 25px 22px 28px;
    }

    .app-layout-guest[data-mobile-section="profile"] {
        height: 100vh;
        height: 100dvh;
        min-height: 0;
        grid-template-rows: 54px minmax(0, 1fr);
        overflow: hidden;
    }

    .app-layout-guest[data-mobile-section="profile"] #login {
        height: 100%;
        min-height: 0;
    }

    #mainContent.app-layout-guest[data-mobile-section="profile"] #login.auth-card {
        margin: 0;
    }

    .app-layout-guest[data-mobile-section="profile"] .auth-card {
        height: 100%;
        grid-template-rows: minmax(150px, 34%) minmax(0, 1fr);
    }

    .app-layout-guest[data-mobile-section="profile"] .auth-hero,
    .app-layout-guest[data-mobile-section="profile"] .auth-panel-content {
        min-height: 0;
    }

    .app-layout-guest[data-mobile-section="profile"] .auth-panel-content {
        overflow-y: auto;
    }
}
