@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

.public-auth-toolbar {
    position: fixed;
    top: 22px;
    right: 22px;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.18s ease;
}

.public-auth-toolbar.is-pending {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.public-language-dropdown {
    position: relative;
}

.public-toolbar-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 54px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    padding: 0.7rem 0.95rem;
    font-family: Roboto, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.public-toolbar-btn:hover,
.public-toolbar-btn:focus {
    transform: translateY(-1px);
    outline: none;
}

.public-language-toggle {
    min-width: 92px;
}

.public-language-toggle img,
.public-language-options img {
    width: 26px;
    height: 26px;
    border-radius: 999px;
    object-fit: cover;
    flex-shrink: 0;
}

.public-language-toggle i {
    font-size: 0.78rem;
}

.public-language-options {
    position: absolute;
    top: calc(100% + 0.7rem);
    right: 0;
    min-width: 220px;
    margin: 0;
    padding: 0.45rem 0;
    border-radius: 22px;
    list-style: none;
    display: none;
}

.public-language-dropdown.open .public-language-options {
    display: block;
}

.public-language-options li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.82rem 1rem;
    cursor: pointer;
    font-family: Roboto, sans-serif;
    font-size: 0.95rem;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.public-theme-toggle {
    width: 54px;
    padding: 0;
}

.public-theme-toggle i {
    font-size: 1rem;
}

html[data-auth-theme="dark"] .public-toolbar-btn {
    background: rgba(13, 11, 13, 0.78);
    border-color: rgba(201, 55, 64, 0.24);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    color: #f7f2ef;
}

html[data-auth-theme="dark"] .public-toolbar-btn:hover,
html[data-auth-theme="dark"] .public-toolbar-btn:focus {
    background: rgba(24, 19, 19, 0.92);
    border-color: rgba(219, 62, 72, 0.42);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.42), 0 0 20px rgba(191, 39, 49, 0.22);
}

html[data-auth-theme="dark"] .public-language-options {
    background: rgba(13, 11, 13, 0.97);
    border: 1px solid rgba(201, 55, 64, 0.24);
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.46);
}

html[data-auth-theme="dark"] .public-language-options li {
    color: #f7f2ef;
}

html[data-auth-theme="dark"] .public-language-options li:hover {
    background: rgba(191, 39, 49, 0.18);
    color: #ffffff;
}

html[data-auth-theme="light"] .public-toolbar-btn {
    background: rgba(255, 255, 255, 0.88);
    border-color: rgba(191, 39, 49, 0.18);
    box-shadow: 0 18px 38px rgba(185, 81, 88, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.95);
    color: #221715;
}

html[data-auth-theme="light"] .public-toolbar-btn:hover,
html[data-auth-theme="light"] .public-toolbar-btn:focus {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(191, 39, 49, 0.3);
    box-shadow: 0 20px 42px rgba(185, 81, 88, 0.18);
}

html[data-auth-theme="light"] .public-language-options {
    background: rgba(255, 251, 249, 0.98);
    border: 1px solid rgba(191, 39, 49, 0.18);
    box-shadow: 0 24px 48px rgba(185, 81, 88, 0.14);
}

html[data-auth-theme="light"] .public-language-options li {
    color: #34211c;
}

html[data-auth-theme="light"] .public-language-options li:hover {
    background: rgba(191, 39, 49, 0.08);
    color: #a7202a;
}

@media screen and (max-width: 768px) {
    .public-auth-toolbar {
        top: 14px;
        right: 12px;
        gap: 0.55rem;
    }

    .public-toolbar-btn {
        min-height: 48px;
        padding: 0.62rem 0.8rem;
        font-size: 0.88rem;
    }

    .public-language-toggle {
        min-width: 84px;
    }

    .public-theme-toggle {
        width: 48px;
    }

    .public-language-options {
        min-width: 200px;
    }
}
