.me2-auth-wrap {
    max-width: 690px;
    margin: 0 auto;
    background: #f5f5f6;
    border: 1px solid #e4e6ea;
    border-radius: 12px;
    padding: 28px 30px;
    box-shadow: 0 12px 24px rgba(30, 50, 90, 0.06);
}

.me2-auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.me2-auth-tab {
    flex: 1;
    border: 1px solid #cad0d8;
    background: #ffffff;
    color: #25325b;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
}

.me2-auth-tab.me2-is-active {
    background: #29356b;
    color: #ffffff;
    border-color: #29356b;
}

.me2-auth-panel {
    display: none;
}

.me2-auth-panel.me2-is-active {
    display: block;
}

.me2-auth-form label {
    display: block;
    font-size: 15px;
    color: #4a4e57;
    font-weight: 500;
    margin: 0 0 7px;
}

.me2-auth-form input,
.me2-auth-form select {
    width: 100%;
    border: 1px solid #bfc5cd;
    border-radius: 8px;
    min-height: 48px;
    padding: 10px 12px;
    background: #ffffff;
    margin-bottom: 16px;
    color: #2f3340;
    font-size: 16px;
}

.me2-auth-form input::placeholder,
.me2-auth-form select {
    color: #a2a8b2;
}

.me2-specialist-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.me2-password-wrap {
    position: relative;
}

.me2-password-wrap input {
    padding-right: 52px;
}

.me2-toggle-password {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 44px;
    height: 44px;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: 999px;
}

.me2-toggle-password::before {
    content: "";
    position: absolute;
    width: 16px;
    height: 12px;
    border: 2px solid #8d93a1;
    border-radius: 50%;
    top: 15px;
    left: 14px;
}

.me2-toggle-password::after {
    content: "";
    position: absolute;
    width: 2px;
    height: 18px;
    background: #8d93a1;
    transform: rotate(35deg);
    top: 12px;
    left: 21px;
}

.me2-toggle-password.is-visible::after {
    opacity: 0;
}

.me2-checkbox {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
    font-size: 14px;
    color: #535a65;
}

.me2-checkbox input {
    width: 18px;
    min-height: 18px;
    height: 18px;
    margin: 5px 2px 0 0;
}

.me2-login-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.me2-login-remember {
    margin-bottom: 0;
}

.me2-auth-link {
    color: #3f4b78;
    text-decoration: underline;
    font-size: 14px;
}

.me2-login-register-hint {
    margin: 14px 0 0;
    text-align: center;
    color: #535a65;
    font-size: 14px;
}

.me2-auth-wrap .me2-password-rules {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px 14px;
    padding: 0 !important;
    margin: -4px 0 16px;
    list-style: none !important;
}

.me2-auth-wrap .me2-password-rules li {
    position: relative;
    padding-left: 24px;
    font-size: 14px;
    color: #7d838d;
    list-style: none !important;
}

.me2-auth-wrap .me2-password-rules li::marker {
    content: '';
}

.me2-auth-wrap .me2-password-rules li::before,
.me2-auth-wrap .me2-password-rules li::after {
    content: "";
    position: absolute;
}

.me2-auth-wrap .me2-password-rules li::before {
    left: 0;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #adb3bb;
}

.me2-auth-wrap .me2-password-rules li::after {
    left: 6px;
    top: 9px;
    width: 2px;
    height: 8px;
    background: #ffffff;
    transform: rotate(45deg);
    box-shadow: -3px 2px 0 #ffffff;
    opacity: 0;
}

.me2-auth-wrap .me2-password-rules li.is-valid {
    color: #4d5a4e;
}

.me2-auth-wrap .me2-password-rules li.is-valid::before {
    background: #2f9d52;
}

.me2-auth-wrap .me2-password-rules li.is-valid::after {
    opacity: 1;
}

.me2-password-strength {
    margin: -6px 0 10px;
}

.me2-password-strength-track {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}

.me2-password-strength-fill {
    display: block;
    width: 0;
    height: 100%;
    background: #d92d20;
    transition: width 0.2s ease, background-color 0.2s ease;
}

.me2-password-strength-text {
    margin-top: 6px;
    font-size: 13px;
    color: #667085;
}

.me2-password-strength.is-weak .me2-password-strength-fill {
    background: #d92d20;
}

.me2-password-strength.is-medium .me2-password-strength-fill {
    background: #f79009;
}

.me2-password-strength.is-strong .me2-password-strength-fill {
    background: #12b76a;
}

.me2-password-match {
    margin: -4px 0 14px;
    font-size: 13px;
    min-height: 18px;
}

.me2-password-match.is-match {
    color: #1f7a4f;
}

.me2-password-match.is-mismatch {
    color: #b42318;
}

.me2-btn {
    width: 100%;
    min-height: 50px;
    border: none;
    border-radius: 8px;
    background: #4f81c8;
    color: #ffffff;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.me2-btn:hover {
    background: #3f6fb2;
}

.me2-auth-notice {
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
    font-size: 14px;
}

.me2-auth-notice.is-success {
    background: #e6f6eb;
    border: 1px solid #87c794;
    color: #216430;
}

.me2-auth-notice.is-error {
    background: #fdeaea;
    border: 1px solid #e39ca1;
    color: #821b23;
}

.me2-auth-success-view {
    width: 100%;
    text-align: center;
    padding: 16px 0 8px;
}

.me2-auth-success-heading {
    margin: 0 0 28px;
    color: #2a386f;
    font-size: 48px;
    line-height: 1.2;
    font-weight: 600;
}

.me2-auth-success-card {
    max-width: 670px;
    margin: 0 auto;
    background: #f5f5f6;
    border: 1px solid #e2e5ea;
    border-radius: 16px;
    box-shadow: 0 14px 24px rgba(33, 53, 92, 0.08);
    padding: 48px 26px 44px;
}

.me2-auth-success-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 22px;
    border: 3px solid #78c796;
    border-radius: 50%;
    position: relative;
}

.me2-auth-success-icon::before {
    content: "";
    position: absolute;
    left: 24px;
    top: 16px;
    width: 16px;
    height: 30px;
    border-right: 3px solid #78c796;
    border-bottom: 3px solid #78c796;
    transform: rotate(40deg);
}

.me2-auth-success-title {
    margin: 0 0 14px;
    color: #2f3136;
    font-size: 40px;
    line-height: 1.3;
    font-weight: 600;
}

.me2-auth-success-text {
    margin: 0;
    color: #5c5f66;
    font-size: 31px;
    line-height: 1.45;
}

.me2-account-badge {
    background: #ffffff;
    border: 1px solid #d7dbe2;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 16px;
    color: #25325b;
    font-weight: 600;
    font-size: 15px;
}

.me2-checkbox a {
    color: #3f4b78;
    text-decoration: underline;
}

.me2-reg-type-toggle {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.me2-reg-type-btn {
    flex: 1;
    border: 1px solid #cad0d8;
    background: #ffffff;
    color: #25325b;
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
}

.me2-reg-type-btn.me2-is-active {
    background: #29356b;
    color: #ffffff;
    border-color: #29356b;
}

.me2-reg-panel-hidden {
    display: none;
}

@media (max-width: 767px) {
    .me2-auth-wrap {
        padding: 20px;
    }

    .me2-auth-form label {
        font-size: 16px;
    }

    .me2-auth-form input,
    .me2-auth-form select {
        font-size: 16px;
        min-height: 46px;
    }

    .me2-auth-wrap .me2-password-rules {
        grid-template-columns: 1fr 1fr;
    }

    .me2-password-rules li,
    .me2-checkbox {
        font-size: 14px;
    }

    .me2-login-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .me2-specialist-grid {
        grid-template-columns: 1fr;
    }

    .me2-btn {
        font-size: 16px;
        min-height: 50px;
    }

    .me2-auth-success-heading {
        font-size: 30px;
        margin-bottom: 20px;
    }

    .me2-auth-success-card {
        padding: 28px 16px;
    }

    .me2-auth-success-title {
        font-size: 22px;
    }

    .me2-auth-success-text {
        font-size: 16px;
    }
}

/* Registration Type Widget */
.me2-regtype-container {
    text-align: center;
}

.me2-regtype-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.me2-regtype-card:hover {
    transform: translateY(-4px);
}

.me2-regtype-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    align-self: center;
    overflow: hidden;
}

.me2-regtype-icon svg {
    width: 60%;
    height: 60%;
}

.me2-regtype-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    margin: 0 auto;
}

.me2-regtype-title {
    margin: 0;
    font-weight: 600;
    font-size: 20px;
}

.me2-regtype-subtitle {
    margin: 0;
    font-weight: 400;
    font-size: 14px;
}

.me2-regtype-btn {
    border: none;
    background: #4f81c8;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}
