/**
 * Shared glass surfaces & controls for public pages.
 */
.glass-panel {
    width: 100%;
    max-width: 26rem;
    padding: clamp(1.5rem, 4vw, 2rem);
    border-radius: calc(var(--pub-radius) + 4px);
    background: linear-gradient(
        145deg,
        rgba(255, 255, 255, 0.09) 0%,
        rgba(255, 255, 255, 0.03) 100%
    );
    border: 1px solid var(--pub-glass-edge);
    box-shadow: var(--pub-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.glass-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.65rem 1.35rem;
    font-family: var(--pub-font);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-decoration: none;
    color: var(--pub-text);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: linear-gradient(
        160deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(255, 255, 255, 0.04) 100%
    );
    box-shadow: 0 8px 32px rgba(0, 12, 40, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease;
}

.glass-btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        0 14px 40px rgba(0, 20, 60, 0.55),
        0 0 0 1px rgba(91, 140, 255, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

.glass-btn:active {
    transform: translateY(0);
}

.glass-btn--lg {
    padding: 0.85rem 2.25rem;
    font-size: 0.95rem;
}

.glass-btn--block {
    width: 100%;
}

.glass-btn--submit {
    cursor: pointer;
    margin-top: 0.5rem;
}

.pub-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.pub-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--pub-text-muted);
}

.pub-input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-family: var(--pub-font);
    font-size: 0.95rem;
    color: var(--pub-text);
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.65rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pub-input::placeholder {
    color: var(--pub-text-muted);
}

.pub-input:focus {
    border-color: var(--pub-accent-soft);
    box-shadow: 0 0 0 3px rgba(91, 140, 255, 0.2);
}

/* Prevent Chrome autofill from forcing white background */
.pub-input:-webkit-autofill,
.pub-input:-webkit-autofill:hover,
.pub-input:-webkit-autofill:focus,
.pub-input:-webkit-autofill:active {
    -webkit-text-fill-color: var(--pub-text) !important;
    caret-color: var(--pub-text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    -webkit-box-shadow:
        0 0 0px 1000px rgba(0, 0, 0, 0.25) inset,
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    box-shadow:
        0 0 0px 1000px rgba(0, 0, 0, 0.25) inset,
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    transition: background-color 999999s ease-out 0s;
}

.pub-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--pub-text-muted);
    cursor: pointer;
    user-select: none;
}

.pub-check input {
    accent-color: var(--pub-accent);
    width: 1rem;
    height: 1rem;
}
