/* Login and password recovery share one focused, responsive workspace. */
body.gg-native-theme .gg-auth-page {
    min-height: 620px;
    padding: 32px 0 72px;
    background: #f5f7fa;
}

html body.gg-native-theme .gg-page.gg-auth-page:not(.gg-page--builder-content) > .gg-container.gg-auth-container {
    width: min(1120px, calc(100% - 48px)) !important;
    max-width: 1120px !important;
    margin-inline: auto !important;
    box-sizing: border-box;
}

body.gg-native-theme .gg-auth-page .gg-breadcrumbs {
    width: 100%;
    margin: 0 0 28px;
    color: #6f7786;
    font-size: 13px;
    line-height: 1.5;
}

body.gg-native-theme .gg-auth-page .gg-breadcrumbs a {
    color: #182d54;
}

body.gg-native-theme .gg-auth-shell {
    display: grid;
    grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
    min-height: 512px;
    overflow: hidden;
    border: 1px solid #d9e0ea;
    border-radius: 0;
    background: #fff;
}

body.gg-native-theme .gg-auth-context {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 54px 48px;
    background: #162d57;
    color: #fff;
}

body.gg-native-theme .gg-auth-context__icon {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-bottom: 28px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #77afe8;
    font-size: 20px;
}

body.gg-native-theme .gg-auth-context__eyebrow,
body.gg-native-theme .gg-auth-heading__eyebrow {
    margin: 0 0 10px;
    color: #77afe8;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0;
    text-transform: uppercase;
}

body.gg-native-theme .gg-auth-context h2 {
    max-width: 300px;
    margin: 0 0 18px;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: 0;
}

body.gg-native-theme .gg-auth-context > p:last-child {
    max-width: 310px;
    margin: 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.65;
}

body.gg-native-theme .gg-auth-form-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 52px clamp(44px, 6vw, 78px);
    background: #fff;
}

body.gg-native-theme .gg-auth-heading {
    margin-bottom: 30px;
}

body.gg-native-theme .gg-auth-heading .gg-page-title,
body.gg-native-theme .gg-auth-form-panel .grlp-title {
    margin: 0 0 10px;
    color: #182d54;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0;
    text-align: left;
}

body.gg-native-theme .gg-auth-heading > p:last-child,
body.gg-native-theme .gg-auth-form-panel .grlp-subtitle {
    max-width: 520px;
    margin: 0;
    color: #6f7786;
    font-size: 15px;
    line-height: 1.6;
    text-align: left;
}

body.gg-native-theme .gg-auth-form-panel #gg-auth-login-form,
body.gg-native-theme .gg-auth-form-panel .grlp-form {
    width: 100%;
    max-width: none;
    margin: 0;
}

body.gg-native-theme .gg-auth-form-panel .login-username,
body.gg-native-theme .gg-auth-form-panel .login-password,
body.gg-native-theme .gg-auth-form-panel .grlp-field-group {
    margin: 0 0 20px;
}

body.gg-native-theme .gg-auth-form-panel label,
body.gg-native-theme .gg-auth-form-panel .grlp-label {
    display: block;
    margin: 0 0 8px;
    color: #182d54;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    text-align: left;
}

body.gg-native-theme .gg-auth-form-panel input[type="text"],
body.gg-native-theme .gg-auth-form-panel input[type="email"],
body.gg-native-theme .gg-auth-form-panel input[type="password"],
body.gg-native-theme .gg-auth-form-panel .grlp-input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 15px;
    border: 1px solid #cbd4e1;
    border-radius: 0;
    outline: 0;
    background: #fff;
    color: #182d54;
    font: inherit;
    font-size: 15px;
    box-shadow: none;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

body.gg-native-theme .gg-auth-form-panel input:focus,
body.gg-native-theme .gg-auth-form-panel .grlp-input:focus {
    border-color: #5493d5;
    box-shadow: 0 0 0 3px rgba(119, 175, 232, 0.2);
}

body.gg-native-theme .gg-auth-password,
body.gg-native-theme .gg-auth-form-panel .grlp-password-wrap {
    position: relative;
}

body.gg-native-theme .gg-auth-password input,
body.gg-native-theme .gg-auth-form-panel .grlp-password-wrap .grlp-input {
    padding-right: 48px;
}

body.gg-native-theme .gg-auth-password__toggle,
body.gg-native-theme .gg-auth-form-panel .grlp-toggle-pw {
    position: absolute;
    top: 50%;
    right: 4px;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: #6f7786;
    cursor: pointer;
    transform: translateY(-50%);
}

body.gg-native-theme .gg-auth-password__toggle:hover,
body.gg-native-theme .gg-auth-password__toggle:focus-visible,
body.gg-native-theme .gg-auth-form-panel .grlp-toggle-pw:hover,
body.gg-native-theme .gg-auth-form-panel .grlp-toggle-pw:focus-visible {
    background: #edf4fb;
    color: #162d57;
}

body.gg-native-theme .gg-auth-form-panel .login-remember {
    margin: -2px 0 22px;
}

body.gg-native-theme .gg-auth-form-panel .login-remember label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: #505c70;
    font-weight: 400;
    cursor: pointer;
}

body.gg-native-theme .gg-auth-form-panel input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: #162d57;
}

body.gg-native-theme .gg-auth-form-panel .login-submit,
body.gg-native-theme .gg-auth-form-panel .grlp-submit-group {
    margin: 0;
}

body.gg-native-theme .gg-auth-form-panel .button,
body.gg-native-theme .gg-auth-form-panel .grlp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    margin: 0;
    padding: 12px 24px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(90deg, #162d57 0%, #77afe8 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}

body.gg-native-theme .gg-auth-form-panel .button:hover,
body.gg-native-theme .gg-auth-form-panel .button:focus-visible,
body.gg-native-theme .gg-auth-form-panel .grlp-btn:hover,
body.gg-native-theme .gg-auth-form-panel .grlp-btn:focus-visible {
    color: #fff;
    filter: brightness(1.07);
    transform: translateY(-1px);
}

body.gg-native-theme .gg-auth-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 12px;
    margin-top: 24px;
    color: #6f7786;
    font-size: 13px;
    line-height: 1.5;
}

body.gg-native-theme .gg-auth-link {
    color: #182d54;
    font-weight: 600;
    text-decoration: none;
}

body.gg-native-theme .gg-auth-link:hover,
body.gg-native-theme .gg-auth-link:focus-visible {
    color: #5493d5;
    text-decoration: underline;
}

body.gg-native-theme .gg-auth-link--primary {
    width: 100%;
    margin-bottom: 4px;
    text-align: center;
}

body.gg-native-theme .gg-auth-links__divider {
    width: 1px;
    height: 14px;
    background: #d9e0ea;
}

body.gg-native-theme .gg-auth-notice,
body.gg-native-theme .gg-auth-form-panel .grlp-notice {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    margin: 0 0 22px;
    padding: 13px 14px;
    border: 1px solid #e5b4b4;
    border-radius: 0;
    background: #fff6f6;
    color: #8a2d2d;
    font-size: 13px;
    line-height: 1.5;
    text-align: left;
}

body.gg-native-theme .gg-auth-form-panel .grlp-wrapper {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.gg-native-theme .gg-auth-form-panel .grlp-heading {
    margin: 0 0 30px;
}

body.gg-native-theme .gg-auth-form-panel .grlp-back-link {
    margin: 22px 0 0;
    text-align: center;
}

body.gg-native-theme .gg-auth-form-panel .grlp-back-link a {
    color: #182d54;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
}

body.gg-native-theme .gg-auth-form-panel .grlp-back-link a:hover,
body.gg-native-theme .gg-auth-form-panel .grlp-back-link a:focus-visible {
    color: #5493d5;
    text-decoration: underline;
}

body.gg-native-theme .gg-auth-form-panel .grlp-state-card {
    margin: 0;
    padding: 28px;
    border: 1px solid #d9e0ea;
    border-radius: 0;
    background: #f8fafc;
    text-align: left;
}

body.gg-native-theme .gg-auth-form-panel .grlp-state-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin: 0 0 20px;
    border-radius: 50%;
    background: #e6f1fc;
    color: #162d57;
}

body.gg-native-theme .gg-auth-form-panel .grlp-state-title,
body.gg-native-theme .gg-auth-form-panel .grlp-state-text {
    text-align: left;
}

body.gg-native-theme .gg-auth-form-panel .grlp-strength-bar {
    margin-top: 8px;
}

@media (max-width: 820px) {
    body.gg-native-theme .gg-auth-page {
        min-height: 0;
        padding: 24px 0 48px;
    }

    html body.gg-native-theme .gg-page.gg-auth-page:not(.gg-page--builder-content) > .gg-container.gg-auth-container {
        width: min(calc(100% - 32px), 680px) !important;
        max-width: 680px !important;
    }

    body.gg-native-theme .gg-auth-page .gg-breadcrumbs {
        margin-bottom: 20px;
    }

    body.gg-native-theme .gg-auth-shell {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    body.gg-native-theme .gg-auth-context {
        padding: 28px 30px;
    }

    body.gg-native-theme .gg-auth-context__icon {
        width: 44px;
        height: 44px;
        margin-bottom: 18px;
        font-size: 17px;
    }

    body.gg-native-theme .gg-auth-context h2 {
        max-width: none;
        margin-bottom: 10px;
        font-size: 24px;
    }

    body.gg-native-theme .gg-auth-context > p:last-child {
        max-width: 560px;
        line-height: 1.5;
    }

    body.gg-native-theme .gg-auth-form-panel {
        padding: 34px 30px 38px;
    }
}

@media (max-width: 480px) {
    html body.gg-native-theme .gg-page.gg-auth-page:not(.gg-page--builder-content) > .gg-container.gg-auth-container {
        width: min(calc(100% - 24px), 420px) !important;
        max-width: 420px !important;
    }

    body.gg-native-theme .gg-auth-page {
        padding-top: 18px;
    }

    body.gg-native-theme .gg-auth-page .gg-breadcrumbs {
        font-size: 12px;
    }

    body.gg-native-theme .gg-auth-context,
    body.gg-native-theme .gg-auth-form-panel {
        padding-right: 22px;
        padding-left: 22px;
    }

    body.gg-native-theme .gg-auth-heading .gg-page-title,
    body.gg-native-theme .gg-auth-form-panel .grlp-title {
        font-size: 28px;
    }

    body.gg-native-theme .gg-auth-links__divider {
        display: none;
    }

    body.gg-native-theme .gg-auth-links > span:not(.gg-auth-links__divider),
    body.gg-native-theme .gg-auth-links > .gg-auth-link:last-child {
        width: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.gg-native-theme .gg-auth-form-panel input,
    body.gg-native-theme .gg-auth-form-panel .button,
    body.gg-native-theme .gg-auth-form-panel .grlp-btn {
        transition: none;
    }
}

/* Consistent recovery and partner links on all translated login pages. */
body.gg-native-theme .gg-auth-form-panel > .gg-auth-links {
    gap: 8px;
    margin-top: 20px;
    font-size: 14px;
    text-align: center;
}
body.gg-native-theme .gg-auth-form-panel > .gg-auth-links > .gg-auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    font-size: 14px;
    line-height: 1.5;
}
body.gg-native-theme .gg-auth-form-panel > .gg-auth-links > .gg-auth-link--primary {
    flex-basis: 100%;
    margin: 0;
}
body.gg-native-theme .gg-auth-form-panel > .gg-auth-links > .gg-auth-links__divider {
    display: block;
    flex-basis: 100%;
    width: 100%;
    height: 1px;
    margin: 6px 0 8px;
    background: #e3e9f1;
}
body.gg-native-theme .gg-auth-form-panel > .gg-auth-links > span:not(.gg-auth-links__divider) {
    color: #627086;
}
body.gg-native-theme .gg-auth-form-panel > .gg-auth-links > .gg-auth-link:last-child {
    text-decoration: underline;
    text-underline-offset: 3px;
}
@media (max-width: 480px) {
    body.gg-native-theme .gg-auth-form-panel > .gg-auth-links { gap: 4px 8px; }
    body.gg-native-theme .gg-auth-form-panel > .gg-auth-links > .gg-auth-links__divider { margin: 8px 0 12px; }
}
