.heat-solar-auth-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    z-index: 2000;
}

.heat-solar-auth-dialog .wa-dialog-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
    background: rgba(0, 0, 0, .5);
}

.heat-solar-auth-dialog .wa-dialog-body {
    position: absolute;
    width: 535px;
    max-width: calc(100% - 30px);
    box-sizing: border-box;
    padding: 35px 40px;
    border: 0;
    border-radius: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .2);
    background: var(--popup-bg-color);
    color: var(--popup-text-color);
}

.heat-solar-auth-dialog .wa-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 20px;
}

.heat-solar-auth-dialog .wa-dialog-header .wa-header {
    font-size: 20px;
    line-height: 1.2;
    font-weight: 700;
}

.heat-solar-auth-dialog .wa-dialog-header .wa-close-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    color: #888;
    cursor: pointer;
}

.heat-solar-auth-dialog .wa-dialog-header .wa-close-wrapper:hover {
    color: var(--body-text-color);
}

.heat-solar-auth-dialog .wa-dialog-header .wa-close-wrapper svg {
    display: block;
    width: 10px;
    height: 10px;
    fill: currentColor;
}

.heat-solar-auth-dialog .wa-dialog-content {
    box-sizing: border-box;
}

.heat-solar-auth-dialog .wa-dialog-body {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-height: calc(100vh - 30px);
}

.heat-solar-auth-dialog .wa-dialog-content {
    max-height: calc(100vh - 150px) !important;
    overflow-y: auto;
    overflow-x: hidden;
}

.heat-solar-auth-dialog form,
.heat-solar-auth-dialog .wa-field,
.heat-solar-auth-dialog .wa-value {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.heat-solar-auth-dialog .wa-field {
    margin: 0 0 18px;
}

.heat-solar-auth-dialog .wa-field:last-child {
    margin-bottom: 0;
}

.heat-solar-auth-dialog .wa-field .wa-name {
    margin: 0 0 7px;
    font-size: 14px;
    line-height: 1.3;
}

.heat-solar-auth-dialog .wa-value input[type="text"],
.heat-solar-auth-dialog .wa-value input[type="email"],
.heat-solar-auth-dialog .wa-value input[type="password"] {
    display: block;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 48px !important;
    line-height: 48px !important;
    box-sizing: border-box;
    padding: 0 15px !important;
    border: 1px solid var(--input-border-color);
    border-radius: 8px;
    background: var(--input-bg-color);
    color: var(--body-text-color);
    outline: none;
}

.heat-solar-auth-dialog .wa-value input[type="text"]:focus,
.heat-solar-auth-dialog .wa-value input[type="email"]:focus,
.heat-solar-auth-dialog .wa-value input[type="password"]:focus {
    border-color: var(--bs-color);
}

.heat-solar-auth-dialog .wa-field-password .wa-value {
    position: relative;
}

.heat-solar-auth-dialog .wa-login-forgotpassword-url {
    display: inline-block;
    margin-top: 8px;
}

.heat-solar-auth-dialog .wa-login-form-actions,
.heat-solar-auth-dialog .wa-signup-form-actions,
.heat-solar-auth-dialog .wa-forgotpassword-form-actions,
.heat-solar-auth-dialog .wa-change-password-form-actions {
    margin-top: 24px;
}

.heat-solar-auth-dialog .wa-buttons-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.heat-solar-auth-dialog .wa-buttons-wrapper input[type="submit"] {
    min-height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: var(--bs-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

.heat-solar-auth-dialog .wa-buttons-wrapper input[type="submit"]:disabled {
    opacity: .55;
    cursor: default;
}

.heat-solar-auth-dialog .wa-signup-url,
.heat-solar-auth-dialog .wa-login-url {
    margin-top: 16px;
}

.heat-solar-auth-dialog .wa-uncaught-errors,
.heat-solar-auth-dialog .wa-info-messages {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.heat-solar-auth-dialog .wa-uncaught-errors {
    background: rgba(220, 18, 18, .08);
    color: #dc1212;
}

.heat-solar-auth-dialog .wa-info-messages {
    background: rgba(39, 160, 67, .1);
}

.heat-solar-auth-dialog .wa-captcha-field .wa-value {
    min-height: 1px;
}

body.heat-solar-auth-open {
    overflow: hidden;
}

@media (max-width: 560px) {
    .heat-solar-auth-dialog .wa-dialog-body {
        width: calc(100% - 24px) !important;
        max-width: none;
    }
}


.heat-solar-confirm-dialog .heat-solar-confirm-message {
    display: block;
    margin-bottom: 22px;
}

.heat-solar-confirm-dialog .heat-solar-confirm-message.is-error {
    background: rgba(220, 18, 18, .08);
    color: #dc1212;
}

.heat-solar-confirm-dialog .heat-solar-confirm-actions {
    margin-top: 0;
}

.heat-solar-confirm-dialog .heat-solar-confirm-button {
    min-height: 42px;
    padding: 0 24px;
    border: 0;
    border-radius: 8px;
    background: var(--bs-color);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}
