.pb-auth-modal .pb-auth-dialog {
    width: calc(100% - 24px);
    max-width: 680px;
    margin: 24px auto;
}

.pb-auth-modal .pb-auth-content {
    overflow: hidden;
    border: 1px solid #dde5de;
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(17, 48, 34, .18);
    background: #fff;
    color: #12362c;
}

.pb-auth-modal .pb-auth-main {
    padding: 38px 42px 30px;
}

.pb-auth-modal .pb-auth-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.pb-auth-modal .pb-auth-title {
    margin: 0;
    color: #12362c;
    font-size: 29px;
    font-weight: 700;
    line-height: 1.2;
}

.pb-auth-modal .pb-auth-intro {
    margin: 15px 0 0;
    color: #60756b;
    font-size: 16px;
    line-height: 1.5;
}

.pb-auth-modal .pb-auth-close {
    flex: none;
    border: 0;
    background: none;
    color: #60756b;
    font-size: 29px;
    line-height: 1;
    cursor: pointer;
}

.pb-auth-modal .pb-auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    margin: 24px 0;
    border-radius: 15px;
    background: #f0f4f0;
}

.pb-auth-modal .pb-auth-tab {
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 11px;
    background: transparent;
    color: #476457;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.pb-auth-modal .pb-auth-tab.is-active {
    border-color: #dbe4dd;
    background: #fff;
    color: #22543a;
    box-shadow: 0 2px 7px rgba(24, 56, 38, .09);
}

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

.pb-auth-modal .pb-auth-field {
    margin-bottom: 18px;
}

.pb-auth-modal .pb-auth-field label {
    display: block;
    margin-bottom: 8px;
    color: #15372c;
    font-size: 14px;
    font-weight: 700;
}

.pb-auth-modal .pb-auth-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.pb-auth-modal .pb-auth-label-row a {
    color: #315d43;
    font-size: 13px;
    text-decoration: underline;
}

.pb-auth-modal .pb-auth-input {
    width: 100%;
    height: 50px;
    padding: 0 15px;
    border: 1px solid #cddbd0;
    border-radius: 11px;
    background: #fff;
    color: #15372c;
    font-size: 16px;
    box-sizing: border-box;
}

.pb-auth-modal .pb-auth-input:focus {
    border-color: #3d7251;
    outline: 2px solid rgba(61, 114, 81, .18);
    outline-offset: 1px;
}

.pb-auth-modal .pb-auth-password-input {
    position: relative;
}

.pb-auth-modal .pb-auth-password-input .pb-auth-input {
    padding-right: 48px;
}

.pb-auth-modal .pb-auth-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: 46px;
    height: 50px;
    border: 0;
    background: transparent;
    color: #60756b;
    cursor: pointer;
}

.pb-auth-modal .pb-auth-password-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.pb-auth-modal .pb-auth-password-rule {
    display: flex;
    grid-column: 1 / -1;
    align-items: flex-start;
    gap: 9px;
    margin: -13px 0 18px;
    color: #63786b;
    font-size: 13px;
    line-height: 1.45;
}

.pb-auth-modal .pb-auth-password-rule > i {
    flex: none;
    margin-top: 2px;
}

.pb-auth-modal .pb-auth-password-rule.is-invalid {
    margin-top: -8px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #fff1f1;
    color: #ad3232;
    font-size: 14px;
    font-weight: 600;
}

.pb-auth-modal .pb-auth-submit {
    display: block;
    width: 100%;
    min-height: 52px;
    margin-top: 8px;
    border: 0;
    border-radius: 11px;
    background: #3f6c4e;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.pb-auth-modal .pb-auth-submit:hover,
.pb-auth-modal .pb-auth-submit:focus {
    background: #315b3e;
    color: #fff;
}

.pb-auth-modal .pb-auth-divider {
    position: relative;
    margin: 20px 0;
    text-align: center;
    color: #7f8f84;
}

.pb-auth-modal .pb-auth-divider:before {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    border-top: 1px solid #dfe6df;
}

.pb-auth-modal .pb-auth-divider span {
    position: relative;
    padding: 0 16px;
    background: #fff;
}

.pb-auth-modal .pb-auth-social {
    display: grid;
    gap: 10px;
}

.pb-auth-modal .pb-auth-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 50px;
    border: 1px solid #cddbd0;
    border-radius: 11px;
    background: #fff;
    color: #15372c;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.pb-auth-modal .pb-auth-social-button:hover,
.pb-auth-modal .pb-auth-social-button:focus {
    background: #f5f9f5;
    color: #15372c;
    text-decoration: none;
}

.pb-auth-modal .pb-auth-social-button img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.pb-auth-modal .pb-auth-error {
    display: block;
    margin-top: 5px;
    color: #b42f2f;
    font-size: 13px;
}

.pb-auth-modal .pb-auth-input-invalid {
    border-color: #df6b6b;
}

.pb-auth-modal .pb-auth-duplicate {
    margin-top: 9px;
    padding: 13px 15px;
    border-radius: 11px;
    background: #fff1f1;
    color: #ad3232;
    font-size: 14px;
}

.pb-auth-modal .pb-auth-duplicate-message {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.pb-auth-modal .pb-auth-duplicate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin: 11px 0 0 26px;
}

.pb-auth-modal .pb-auth-duplicate-actions button,
.pb-auth-modal .pb-auth-duplicate-actions a {
    padding: 0;
    border: 0;
    background: none;
    color: #315f42;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.pb-auth-modal .pb-auth-guest {
    padding: 22px 42px 28px;
    border-top: 1px solid #e3e9e3;
    text-align: center;
}

.pb-auth-modal .pb-auth-guest-title {
    margin: 0 0 9px;
    color: #405c4b;
    font-size: 14px;
    font-weight: 600;
}

.pb-auth-modal .pb-auth-guest-button {
    border: 0;
    background: none;
    color: #2d6642;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

.pb-auth-modal .pb-auth-guest-button:hover,
.pb-auth-modal .pb-auth-guest-button:focus {
    color: #1f4b30;
    text-decoration: underline;
}

.pb-auth-modal .pb-auth-guest p:last-child {
    max-width: 480px;
    margin: 9px auto 0;
    color: #708175;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    .pb-auth-modal .pb-auth-dialog { margin: 10px auto; }
    .pb-auth-modal .pb-auth-main { padding: 26px 22px 23px; }
    .pb-auth-modal .pb-auth-title { font-size: 24px; }
    .pb-auth-modal .pb-auth-intro { font-size: 14px; }
    .pb-auth-modal .pb-auth-password-row { grid-template-columns: 1fr; gap: 0; }
    .pb-auth-modal .pb-auth-guest { padding: 20px 22px 24px; }
}
