html.pandaex-auth-modal-open,
html.pandaex-auth-modal-open body {
    overflow: hidden;
}

.pandaex-auth-modal,
.pandaex-auth-modal * {
    box-sizing: border-box;
}

.pandaex-auth-modal[hidden] {
    display: none !important;
}

.pandaex-auth-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    place-items: center;
    padding: 20px;
    font-family: 'Rajdhani', Arial, Helvetica, sans-serif;
}

.pandaex-auth-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(7px);
}

.pandaex-auth-modal__dialog {
    position: relative;
    width: min(560px, 100%);
    max-height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 32px;
    border: 1px solid #303030;
    border-radius: 20px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 26px 80px rgba(0, 0, 0, 0.45);
}

.pandaex-auth-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid #363636;
    border-radius: 50%;
    background: #191919;
    color: #ffffff;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.pandaex-auth-modal__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 12px;
}

.pandaex-auth-modal__brand .crypto-header__mark {
    width: 52px;
}

.pandaex-auth-modal__title {
    margin: 0;
    color: #ffffff;
    font-size: 31px;
    font-weight: 700;
    line-height: 1.1;
    text-align: center;
}

.pandaex-auth-modal__intro {
    margin: 9px auto 22px;
    max-width: 430px;
    color: #b9b9b9;
    font-size: 16px;
    line-height: 1.5;
    text-align: center;
}

.pandaex-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 22px;
    padding: 5px;
    border: 1px solid #2d2d2d;
    border-radius: 12px;
    background: #181818;
}

.pandaex-auth-tabs__button {
    min-height: 43px;
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #bdbdbd;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.pandaex-auth-tabs__button.is-active {
    background: #ffb900;
    color: #111111;
}

.pandaex-auth-panel[hidden] {
    display: none !important;
}

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

.pandaex-auth-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.pandaex-auth-field {
    display: grid;
    gap: 7px;
    margin: 0;
}

.pandaex-auth-field > span {
    color: #f4f4f4;
    font-size: 14px;
    font-weight: 700;
}

.pandaex-auth-field > span b {
    color: #ffb900;
}

.pandaex-auth-field input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #363636;
    border-radius: 10px;
    outline: none;
    background: #181818;
    color: #ffffff;
    font: inherit;
    font-size: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pandaex-auth-field input:focus {
    border-color: #ffb900;
    box-shadow: 0 0 0 3px rgba(255, 185, 0, 0.14);
}

.pandaex-auth-field small {
    color: #929292;
    font-size: 12px;
    line-height: 1.4;
}

.pandaex-auth-field--referral {
    padding: 13px;
    border: 1px solid rgba(255, 185, 0, 0.34);
    border-radius: 12px;
    background: rgba(255, 185, 0, 0.05);
}

.pandaex-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c7c7c7;
    font-size: 14px;
    cursor: pointer;
}

.pandaex-auth-check input {
    accent-color: #ffb900;
}

.pandaex-auth-submit {
    min-height: 49px;
    padding: 12px 20px;
    border: 1px solid #ffb900;
    border-radius: 10px;
    background: #ffb900;
    color: #111111;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.pandaex-auth-submit:hover {
    transform: translateY(-1px);
}

.pandaex-auth-submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

.pandaex-auth-response {
    min-height: 0;
    color: #c7c7c7;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
}

.pandaex-auth-response[data-status="success"] {
    color: #65d9a7;
}

.pandaex-auth-response[data-status="error"] {
    color: #ff8d8d;
}

.pandaex-auth-response[data-status="loading"] {
    color: #ffcf55;
}

.crypto-header__button[data-pandaex-auth-open] {
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 600px) {
    .pandaex-auth-modal {
        align-items: end;
        padding: 10px;
    }

    .pandaex-auth-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 28px 18px 22px;
        border-radius: 18px;
    }

    .pandaex-auth-modal__title {
        font-size: 27px;
    }

    .pandaex-auth-grid {
        grid-template-columns: 1fr;
    }
}
