.bardo-form input[type="text"],
.bardo-form input[type="email"],
.bardo-form input[type="password"],
.bardo-form input[type="url"] {
    display: block;
    max-width: 420px;
    width: 100%;
}

.bardo-message {
    margin: 1rem 0;
    padding: .75rem 1rem;
    border-left: 4px solid #3a7d44;
}

.bardo-error {
    border-color: #b3261e;
}

.bardo-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
}

#bardo-auth-header-root {
    display: inline-block;
    position: relative;
    z-index: 10001;
}

.bardo-header-auth {
    position: relative;
    display: inline-block;
    font-family: inherit;
}

.bardo-header-auth__button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    background: #ef3f3d;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
}

.bardo-header-auth.is-logged-in .bardo-header-auth__button {
    min-width: 128px;
    background: #111;
}

.bardo-header-auth__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 240px;
    padding: 14px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .12);
    box-shadow: 0 16px 40px rgba(0, 0, 0, .18);
    text-align: left;
}

.bardo-header-auth__profile {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0, 0, 0, .1);
}

.bardo-header-auth__profile strong,
.bardo-header-auth__profile span {
    color: #151515;
    font-size: 14px;
    line-height: 1.35;
}

.bardo-header-auth__menu button {
    width: 100%;
    padding: 9px 10px;
    border: 1px solid #111;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.bardo-auth-modal[hidden],
.bardo-auth-view[hidden] {
    display: none;
}

.bardo-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 18px;
}

.bardo-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .62);
}

.bardo-auth-modal__panel {
    position: relative;
    width: min(440px, 100%);
    max-height: calc(100vh - 36px);
    overflow: auto;
    padding: 30px;
    background: #fff;
    color: #151515;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .35);
}

.bardo-auth-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.bardo-auth-view h2 {
    margin: 0 0 18px;
    color: #151515;
    font-size: 26px;
    line-height: 1.2;
}

.bardo-auth-view form {
    display: grid;
    gap: 12px;
}

.bardo-auth-view label {
    display: grid;
    gap: 6px;
    color: #222;
    font-size: 13px;
    font-weight: 700;
}

.bardo-auth-view input[type="text"],
.bardo-auth-view input[type="email"],
.bardo-auth-view input[type="password"] {
    width: 100%;
    min-height: 42px;
    padding: 8px 10px;
    border: 1px solid #cfcfcf;
    font-size: 15px;
}

.bardo-auth-check {
    display: flex !important;
    grid-template-columns: none !important;
    align-items: center;
    gap: 8px;
    font-weight: 500 !important;
}

.bardo-auth-view button[type="submit"] {
    min-height: 44px;
    border: 0;
    background: #ef3f3d;
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
}

.bardo-auth-view button[disabled] {
    opacity: .65;
    cursor: wait;
}

.bardo-auth-switch {
    margin: 0;
    color: #333;
    font-size: 14px;
}

.bardo-auth-switch button {
    border: 0;
    padding: 0;
    background: transparent;
    color: #ef3f3d;
    font-weight: 800;
    cursor: pointer;
}

.bardo-auth-feedback {
    min-height: 20px;
    color: #b3261e;
    font-size: 13px;
}

.bardo-auth-modal-open {
    overflow: hidden;
}
