/* GGurgenidze guest authentication visual layer v22
   Loaded only by login, register, forgot-password, reset-password, and verify-pending. */

body.is-guest {
    background:
        radial-gradient(circle at 8% 4%, rgba(22, 118, 237, .14), transparent 25rem),
        radial-gradient(circle at 94% 36%, rgba(16, 42, 86, .09), transparent 27rem),
        linear-gradient(180deg, #f8fbff 0%, #eef3f9 100%) !important;
}

body.is-guest .site-header {
    background: rgba(255, 255, 255, .92);
    border-bottom-color: #dce6f2;
    box-shadow: 0 5px 20px rgba(16, 42, 86, .04);
    backdrop-filter: blur(12px);
}

body.is-guest .brand {
    color: #102a56;
    letter-spacing: -.035em;
}

body.is-guest .guest-nav {
    gap: 10px;
}

body.is-guest .guest-nav a {
    color: #365273;
    border-radius: 10px;
    padding: 10px 12px;
    transition: background .16s ease, color .16s ease;
}

body.is-guest .guest-nav a:hover,
body.is-guest .guest-nav a:focus-visible {
    background: #edf5ff;
    color: #1266c9;
}

body.is-guest .page {
    min-height: calc(100vh - 74px);
    padding: 42px 0 76px;
}

body.is-guest .auth-grid.auth-mail-page {
    width: min(100%, 560px);
    max-width: 560px;
    margin: 0 auto;
}

body.is-guest .auth-mail-card {
    position: relative;
    overflow: hidden;
    padding: 42px 44px 34px;
    border: 1px solid rgba(196, 211, 229, .92);
    border-radius: 26px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 70px rgba(16, 42, 86, .12), 0 3px 10px rgba(16, 42, 86, .04);
}

body.is-guest .auth-mail-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 5px;
    background: linear-gradient(90deg, #102a56, #1676ed 56%, #65b5ff);
}

body.is-guest .auth-mail-icon {
    width: 62px;
    height: 62px;
    border: 1px solid rgba(22, 118, 237, .16);
    border-radius: 19px;
    background: linear-gradient(145deg, #eaf4ff, #d8eaff);
    color: #1169d1;
    box-shadow: 0 10px 22px rgba(22, 118, 237, .12), inset 0 0 0 5px rgba(255, 255, 255, .42);
}

body.is-guest .auth-mail-icon.is-large {
    width: 78px;
    height: 78px;
    border-radius: 24px;
}

body.is-guest .auth-mail-icon svg {
    width: 29px;
    height: 29px;
}

body.is-guest .auth-mail-icon.is-large svg {
    width: 37px;
    height: 37px;
}

body.is-guest .auth-mail-card > h1 {
    margin: 20px 0 8px;
    color: #102a56;
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    letter-spacing: -.035em;
    line-height: 1.1;
}

body.is-guest .auth-mail-card > .muted {
    margin: 0 0 28px;
    color: #6b7c92;
    line-height: 1.6;
}

body.is-guest .auth-mail-form {
    gap: 17px;
}

body.is-guest .auth-mail-form label {
    gap: 8px;
    color: #2b4260;
    font-size: .9rem;
}

body.is-guest .auth-mail-form input[type=email],
body.is-guest .auth-mail-form input[type=password],
body.is-guest .auth-mail-form input:not([type]) {
    min-height: 52px;
    border: 1px solid #d1deeb;
    border-radius: 13px;
    background: #f8fbff;
    color: #132c4e;
    box-shadow: inset 0 1px 2px rgba(16, 42, 86, .025);
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

body.is-guest .auth-mail-form input:hover {
    border-color: #b7cbe0;
}

body.is-guest .auth-mail-form input:focus {
    border-color: #4e9cf0;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(22, 118, 237, .11);
    outline: 0;
}

body.is-guest .auth-login-options {
    margin-top: -2px;
}

body.is-guest .auth-remember-row {
    color: #60738b;
}

body.is-guest .auth-remember-row input {
    accent-color: #1676ed;
}

body.is-guest .auth-login-options > a,
body.is-guest .auth-switch-link a {
    color: #1268cf;
}

body.is-guest .auth-mail-form .button {
    min-height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1269d2, #167ff0);
    box-shadow: 0 10px 20px rgba(18, 105, 210, .22);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}

body.is-guest .auth-mail-form .button:hover,
body.is-guest .auth-mail-form .button:focus-visible {
    box-shadow: 0 13px 25px rgba(18, 105, 210, .28);
    filter: brightness(1.03);
    transform: translateY(-1px);
}

body.is-guest .auth-mail-form .button.secondary {
    background: #eaf3ff;
    color: #1268cf;
    box-shadow: none;
}

body.is-guest .auth-switch-link {
    margin: 25px 0 0;
    padding-top: 22px;
    border-top: 1px solid #e7edf4;
    color: #73849a;
}

body.is-guest .auth-password-note {
    color: #78899e;
}

body.is-guest .auth-name-grid {
    gap: 13px;
}

body.is-guest .alert.error {
    border: 1px solid #f2caca;
    border-left: 4px solid #d95757;
    border-radius: 13px;
    background: #fff6f6;
    color: #982d35;
}

body.is-guest .auth-mail-centered > h1 {
    margin-top: 20px;
}

body.is-guest .auth-email-address {
    border: 1px solid #d6e7f9;
    background: #f0f7ff;
    color: #1268cf;
}

body.is-guest .auth-resend-form {
    margin-top: 24px;
}

@media (max-width: 650px) {
    body.is-guest .page {
        padding: 22px 0 42px;
    }

    body.is-guest .auth-grid.auth-mail-page {
        width: 100%;
    }

    body.is-guest .auth-mail-card {
        padding: 34px 19px 25px;
        border-radius: 20px;
    }

    body.is-guest .auth-mail-card > h1 {
        font-size: 1.85rem;
    }

    body.is-guest .auth-name-grid {
        grid-template-columns: 1fr;
    }

    body.is-guest .auth-login-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    body.is-guest .guest-nav {
        gap: 2px;
    }

    body.is-guest .guest-nav a {
        padding-inline: 8px;
        font-size: .88rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.is-guest .auth-mail-form input,
    body.is-guest .auth-mail-form .button,
    body.is-guest .guest-nav a {
        transition: none;
    }
}

/* GG_AUTH_REDESIGN_V23_START
 * Scoped visual refresh for guest authentication pages only.
 * No application, feed, session, or remember-me behavior is changed here.
 */
html body.is-guest {
    min-height: 100vh !important;
    background:
        radial-gradient(circle at 12% 6%, rgba(14, 119, 238, .10), transparent 28rem),
        radial-gradient(circle at 88% 28%, rgba(50, 99, 184, .08), transparent 31rem),
        linear-gradient(180deg, #f8fbff 0%, #f1f6fc 52%, #eef4fa 100%) !important;
    color: #10243f !important;
}

html body.is-guest .site-header {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    min-height: 72px !important;
    border-bottom: 1px solid rgba(180, 200, 226, .68) !important;
    background: rgba(255, 255, 255, .88) !important;
    box-shadow: 0 7px 24px rgba(25, 60, 105, .055) !important;
    -webkit-backdrop-filter: blur(18px) saturate(135%) !important;
    backdrop-filter: blur(18px) saturate(135%) !important;
}

html body.is-guest .site-header .nav-wrap {
    width: min(1180px, calc(100% - 36px)) !important;
    min-height: 72px !important;
    margin-inline: auto !important;
    padding: 9px 0 !important;
    gap: 18px !important;
}

html body.is-guest .site-header .brand {
    display: inline-flex !important;
    align-items: center !important;
    min-width: 0 !important;
}

html body.is-guest .site-header .premium-brand-logo {
    display: block !important;
    width: auto !important;
    max-width: 230px !important;
    height: 48px !important;
    object-fit: contain !important;
}

html body.is-guest .gg-language-switcher {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    padding: 4px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 14px !important;
    background: #f5f8fc !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9) !important;
}

html body.is-guest .gg-language-switcher .gg-language-option {
    min-width: 45px !important;
    height: 34px !important;
    padding: 0 11px !important;
    border: 0 !important;
    border-radius: 10px !important;
    color: #5d7088 !important;
    background: transparent !important;
    font-size: .78rem !important;
    font-weight: 800 !important;
    line-height: 34px !important;
    text-align: center !important;
}

html body.is-guest .gg-language-switcher .gg-language-option.active,
html body.is-guest .gg-language-switcher .gg-language-option[aria-current="true"] {
    color: #075fc7 !important;
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(32, 75, 124, .12) !important;
}

html body.is-guest .guest-nav {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    margin-left: 2px !important;
}

html body.is-guest .guest-nav a {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 40px !important;
    padding: 0 15px !important;
    border: 1px solid #dbe5f1 !important;
    border-radius: 11px !important;
    color: #24415f !important;
    background: rgba(255, 255, 255, .74) !important;
    box-shadow: none !important;
    font-weight: 800 !important;
    text-decoration: none !important;
}

html body.is-guest .guest-nav a:hover {
    border-color: #a9c9ee !important;
    color: #0868d7 !important;
    background: #fff !important;
    transform: translateY(-1px) !important;
}

html body.is-guest .guest-nav a:last-child {
    border-color: #0b73e6 !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0877ee, #0564d2) !important;
    box-shadow: 0 8px 18px rgba(7, 108, 222, .20) !important;
}

html body.is-guest .page {
    min-height: calc(100vh - 72px) !important;
    padding: 42px 18px 58px !important;
}

html body.is-guest .auth-grid.auth-mail-page {
    display: block !important;
    width: min(100%, 520px) !important;
    max-width: 520px !important;
    margin: 0 auto !important;
}

html body.is-guest .card.auth-mail-card {
    position: relative !important;
    overflow: hidden !important;
    width: 100% !important;
    padding: 38px 42px 32px !important;
    border: 1px solid rgba(192, 207, 226, .76) !important;
    border-radius: 22px !important;
    background: rgba(255, 255, 255, .94) !important;
    box-shadow: 0 24px 64px rgba(27, 62, 105, .11), 0 3px 10px rgba(27, 62, 105, .05) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    backdrop-filter: blur(14px) !important;
}

html body.is-guest .card.auth-mail-card::before {
    display: none !important;
    content: none !important;
}

html body.is-guest .auth-mail-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 56px !important;
    height: 56px !important;
    margin-bottom: 18px !important;
    border: 1px solid #c8e0fb !important;
    border-radius: 17px !important;
    color: #0872e5 !important;
    background: linear-gradient(145deg, #edf7ff, #e4f1ff) !important;
    box-shadow: 0 10px 24px rgba(20, 111, 218, .12) !important;
}

html body.is-guest .auth-mail-card > h1,
html body.is-guest .auth-mail-centered > h1 {
    margin: 0 0 8px !important;
    color: #10243f !important;
    font-size: clamp(1.9rem, 4vw, 2.25rem) !important;
    line-height: 1.12 !important;
    letter-spacing: -.035em !important;
}

html body.is-guest .auth-mail-subtitle {
    margin: 0 0 26px !important;
    color: #708198 !important;
    font-size: .96rem !important;
    line-height: 1.55 !important;
}

html body.is-guest .auth-mail-form {
    display: grid !important;
    gap: 15px !important;
}

html body.is-guest .auth-mail-form label {
    color: #203d5d !important;
    font-size: .9rem !important;
    font-weight: 800 !important;
}

html body.is-guest .auth-mail-form input:not([type="checkbox"]) {
    width: 100% !important;
    height: 50px !important;
    padding: 0 15px !important;
    border: 1px solid #ccd9e8 !important;
    border-radius: 12px !important;
    color: #132c49 !important;
    background: #fbfdff !important;
    box-shadow: inset 0 1px 2px rgba(32, 60, 92, .025) !important;
    outline: none !important;
}

html body.is-guest .auth-mail-form input:not([type="checkbox"]):focus {
    border-color: #2585ed !important;
    background: #fff !important;
    box-shadow: 0 0 0 4px rgba(17, 119, 232, .11) !important;
}

html body.is-guest .auth-mail-form .button,
html body.is-guest .auth-resend-form .button {
    min-height: 50px !important;
    border: 0 !important;
    border-radius: 12px !important;
    color: #fff !important;
    background: linear-gradient(135deg, #0879ef, #0564d2) !important;
    box-shadow: 0 10px 22px rgba(7, 107, 220, .22) !important;
    font-weight: 900 !important;
}

html body.is-guest .auth-mail-form .button:hover,
html body.is-guest .auth-resend-form .button:hover {
    filter: brightness(1.035) !important;
    transform: translateY(-1px) !important;
}

html body.is-guest .auth-login-options {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 14px !important;
    margin: 0 !important;
}

html body.is-guest .auth-remember-row {
    display: inline-flex !important;
    align-items: center !important;
    gap: 9px !important;
    color: #3c526d !important;
    font-size: .88rem !important;
}

html body.is-guest .auth-remember-row input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    accent-color: #0875e8 !important;
}

html body.is-guest .auth-mail-card a {
    color: #0870dc !important;
    font-weight: 800 !important;
}

html body.is-guest .auth-switch-link {
    margin-top: 25px !important;
    padding-top: 22px !important;
    border-top: 1px solid #e4ebf3 !important;
    color: #78899d !important;
    text-align: center !important;
}

@media (max-width: 820px) {
    html body.is-guest .site-header .nav-wrap {
        width: min(100% - 24px, 1180px) !important;
        gap: 10px !important;
    }

    html body.is-guest .site-header .premium-brand-logo {
        max-width: 190px !important;
        height: 42px !important;
    }

    html body.is-guest .gg-language-switcher .gg-language-option {
        min-width: 38px !important;
        padding-inline: 8px !important;
    }

    html body.is-guest .guest-nav a {
        min-height: 38px !important;
        padding-inline: 11px !important;
        font-size: .88rem !important;
    }
}

@media (max-width: 640px) {
    html body.is-guest .site-header {
        position: relative !important;
    }

    html body.is-guest .site-header .nav-wrap {
        flex-wrap: wrap !important;
        justify-content: center !important;
        min-height: auto !important;
        padding: 10px 0 12px !important;
    }

    html body.is-guest .site-header .brand {
        margin-right: auto !important;
    }

    html body.is-guest .site-header .premium-brand-logo {
        max-width: 170px !important;
        height: 39px !important;
    }

    html body.is-guest .gg-language-switcher {
        margin-left: auto !important;
    }

    html body.is-guest .guest-nav {
        width: 100% !important;
        justify-content: center !important;
    }

    html body.is-guest .guest-nav a {
        flex: 1 1 0 !important;
        max-width: 180px !important;
    }

    html body.is-guest .page {
        min-height: auto !important;
        padding: 25px 12px 40px !important;
    }

    html body.is-guest .card.auth-mail-card {
        padding: 29px 20px 25px !important;
        border-radius: 18px !important;
    }

    html body.is-guest .auth-mail-icon {
        width: 52px !important;
        height: 52px !important;
        border-radius: 15px !important;
    }

    html body.is-guest .auth-login-options {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 11px !important;
    }
}
/* GG_AUTH_REDESIGN_V23_END */
