.auth-modal {
    align-items: center;
    background: rgba(10, 18, 32, .58);
    bottom: 0;
    display: none;
    justify-content: center;
    left: 0;
    padding: 18px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 100000;
}

.auth-modal.is-open {
    display: flex;
}

.auth-dialog {
    background: #fff;
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .26);
    max-height: calc(100vh - 36px);
    max-width: 460px;
    overflow-y: auto;
    padding: 24px;
    position: relative;
    width: min(460px, 100%);
}

.auth-close {
    align-items: center;
    background: #f4f7fb;
    border: 1px solid #dce6f0;
    border-radius: 50%;
    color: #344256;
    cursor: pointer;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    position: absolute;
    right: 14px;
    top: 14px;
    width: 34px;
}

.auth-panel {
    display: none;
}

.auth-panel.is-active {
    display: block;
}

.auth-head {
    align-items: flex-start;
    display: grid;
    gap: 13px;
    grid-template-columns: 46px minmax(0, 1fr);
    margin-bottom: 18px;
    padding-right: 42px;
}

.auth-icon {
    align-items: center;
    background: #eef6ff;
    border: 1px solid #cfe3fa;
    border-radius: 8px;
    color: #1769d1;
    display: inline-flex;
    height: 46px;
    justify-content: center;
    width: 46px;
}

.auth-head h2 {
    color: #172033;
    font-size: 24px;
    line-height: 1.15;
    margin: 0 0 7px;
}

.auth-head p {
    color: #5f6c7b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

.auth-google-action,
.auth-secondary-action,
.auth-primary-action {
    align-items: center;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    font-size: 15px;
    font-weight: 850;
    gap: 10px;
    justify-content: center;
    min-height: 46px;
    padding: 10px 14px;
    text-decoration: none;
    width: 100%;
}

.auth-google-action {
    background: #fff;
    border: 1px solid #d6e0eb;
    color: #172033;
    margin-bottom: 10px;
}

.auth-secondary-action,
.auth-primary-action {
    background: #1769d1;
    border: 1px solid #1769d1;
    color: #fff;
    font-family: inherit;
}

.auth-form {
    display: grid;
    gap: 14px;
}

.auth-form label {
    color: #273244;
    display: grid;
    font-weight: 700;
    gap: 7px;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"] {
    border: 1px solid #cdd6e1;
    border-radius: 6px;
    color: #172033;
    font-size: 15px;
    min-height: 42px;
    padding: 9px 12px;
    width: 100%;
}

.auth-form small {
    color: #657386;
    font-size: 12px;
    line-height: 1.4;
}

.auth-check {
    align-items: center;
    display: flex !important;
    gap: 9px !important;
}

.auth-check input {
    height: 17px;
    width: 17px;
}

.auth-switch {
    color: #5f6c7b;
    font-size: 14px;
    line-height: 1.45;
    margin: 16px 0 0;
    text-align: center;
}

.auth-switch button {
    background: transparent;
    border: 0;
    color: #1769d1;
    cursor: pointer;
    font: inherit;
    font-weight: 850;
    padding: 0 0 0 4px;
}

.auth-message {
    color: #5f6c7b;
    font-size: 13px;
    font-weight: 750;
    margin: 0;
    min-height: 18px;
}

.auth-message.is-error {
    color: #b42318;
}

.auth-message.is-success {
    color: #16794d;
}

.account-google-mark {
    align-items: center;
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 50%;
    color: #1f2937;
    display: inline-flex;
    font-size: 15px;
    font-weight: 900;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.account-field-error {
    color: #b42318;
    font-size: 13px;
    font-weight: 700;
}

.header-account-menu {
    display: inline-flex;
    flex: 0 0 auto;
    position: relative;
}

.header-account-trigger {
    align-items: center;
    background: linear-gradient(180deg, #ffffff, #eef5fb);
    border: 1px solid rgba(255,255,255,.74);
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(16, 42, 67, .18), inset 0 1px 0 rgba(255,255,255,.85);
    color: #0b5fa5;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    padding: 0;
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
    width: 42px;
}

.header-account-trigger:hover,
.header-account-trigger:focus {
    border-color: rgba(255,255,255,.95);
    box-shadow: 0 14px 30px rgba(16, 42, 67, .24), 0 0 0 3px rgba(255,255,255,.18);
    outline: 0;
    transform: translateY(-1px);
}

.header-account-trigger i {
    font-size: 15px;
}

.account-trigger-dot {
    background: #24c277;
    border: 2px solid #fff;
    border-radius: 999px;
    bottom: 6px;
    height: 10px;
    position: absolute;
    right: 6px;
    width: 10px;
}

.header-account-unread-badge {
    align-items: center;
    background: #e7334f;
    border: 2px solid #fff;
    border-radius: 999px;
    box-shadow: 0 6px 12px rgba(231, 51, 79, .24);
    color: #fff;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    min-width: 18px;
    padding: 3px 5px;
    position: absolute;
    right: -5px;
    top: -5px;
}

.header-account-dropdown {
    background: #fff;
    border: 1px solid rgba(15,23,42,.1);
    border-radius: 8px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
    display: none;
    min-width: 214px;
    padding: 7px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 40;
}

.header-account-dropdown.show {
    display: grid;
    gap: 4px;
}

.header-account-item {
    align-items: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #172033;
    display: flex;
    font-size: 14px;
    font-weight: 750;
    gap: 10px;
    min-height: 42px;
    padding: 9px 10px;
    text-align: left;
    text-decoration: none;
    width: 100%;
}

.header-account-item:hover,
.header-account-item:focus {
    background: #f3f8fd;
    border-color: #dfebf7;
    color: #0b5fa5;
    outline: 0;
    text-decoration: none;
}

.header-account-item i {
    color: #0b6ec2;
    font-size: 15px;
    text-align: center;
    width: 18px;
}

.header-account-count {
    align-items: center;
    background: #e7334f;
    border-radius: 999px;
    color: #fff;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    justify-content: center;
    line-height: 1;
    margin-left: auto;
    min-width: 22px;
    padding: 5px 7px;
}

.header-account-item-primary {
    background: #eef6ff;
    border-color: #cfe3fa;
    color: #0b5fa5;
}

.header-account-submit {
    cursor: pointer;
    font-family: inherit;
}

.header-account-form {
    display: block;
    margin: 0;
}

@media (max-width: 700px) {
    .header-account-trigger {
        height: 40px;
        width: 40px;
    }

    .header-account-dropdown {
        max-width: calc(100vw - 20px);
        min-width: 204px;
    }
}
