.identity-body {
    min-width: 320px;
    overflow-x: hidden;
    letter-spacing: 0;
}

.identity-body .app-skip-link {
    z-index: 5000;
}

.identity-body .app-feedback {
    top: 16px;
}

.identity-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
}

.identity-screen--admin {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.identity-screen--agent {
    background: linear-gradient(135deg, #13c2c2 0%, #006d75 100%);
}

.identity-screen--register {
    align-items: center;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
}

.identity-card {
    width: min(400px, 100%);
    padding: 24px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.identity-card--register {
    width: min(420px, 100%);
}

.identity-card__header {
    margin-bottom: 24px;
    text-align: center;
}

.identity-card__header h1,
.identity-user-panel h1,
.identity-forgot-header h1 {
    margin: 0;
    color: #364a63;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: 0;
}

.identity-card--admin .identity-card__header h1,
.identity-card--register .identity-card__header h1 {
    color: #1890ff;
}

.identity-card--agent .identity-card__header h1 {
    color: #13c2c2;
}

.identity-card__header p {
    margin: 4px 0 0;
    color: #999999;
}

.identity-form {
    display: grid;
    gap: 16px;
}

.identity-form--labeled {
    gap: 24px;
}

.identity-form--register {
    gap: 24px;
}

.identity-card--admin .identity-form,
.identity-card--agent .identity-form {
    gap: 24px;
}

.identity-card--admin .identity-form {
    padding-bottom: 24px;
}

.identity-form label,
.identity-label-row {
    color: #262626;
    line-height: 1.5;
}

.identity-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.identity-label-row label {
    min-width: 0;
}

.identity-label-row a,
.identity-forgot-link a {
    flex: 0 0 auto;
    font-size: 13px;
}

.identity-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.identity-input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 12px;
    z-index: 1;
    width: 17px;
    height: 17px;
    color: #7f8a9d;
    pointer-events: none;
    transform: translateY(-50%);
}

.identity-input,
.identity-code-row > .identity-input {
    width: 100%;
    height: 40px;
    min-height: 40px;
    padding: 8px 38px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #ffffff;
    color: #262626;
    outline: 0;
    transition: border-color 140ms ease, box-shadow 140ms ease;
}

.identity-form--labeled .identity-input,
.identity-form--labeled .identity-verify {
    height: 44px;
    min-height: 44px;
}

.identity-form--register > .identity-input {
    padding-left: 12px;
}

.identity-input::placeholder {
    color: #bfbfbf;
    opacity: 1;
}

.identity-input:hover {
    border-color: #4096ff;
}

.identity-input:focus {
    border-color: #4096ff;
    box-shadow: 0 0 0 2px rgba(5, 145, 255, 0.1);
}

.identity-input[aria-invalid="true"] {
    border-color: #ff4d4f;
}

.identity-password-toggle,
.identity-icon-button {
    display: inline-grid;
    width: 36px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    background: transparent;
    color: #8c8c8c;
}

.identity-password-toggle {
    position: absolute;
    top: 50%;
    right: 2px;
    transform: translateY(-50%);
}

.identity-password-toggle svg,
.identity-icon-button svg {
    width: 17px;
    height: 17px;
}

.identity-input-action {
    position: absolute;
    top: 50%;
    right: 8px;
    min-height: 28px;
    padding: 0 4px;
    border: 0;
    background: transparent;
    color: #1890ff;
    font-size: 13px;
    transform: translateY(-50%);
}

.identity-input-wrap--action .identity-input {
    padding-right: 110px;
}

.identity-verify {
    display: flex;
    width: 100%;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #fafafa;
    color: #8094ae;
    transition: border-color 140ms ease, background-color 140ms ease, color 140ms ease;
}

.identity-verify svg {
    display: none;
    width: 18px;
    height: 18px;
}

.identity-verify[data-verified="true"] {
    border-color: #52c41a;
    background: #f6ffed;
    color: #52c41a;
    cursor: default;
}

.identity-verify[data-verified="true"] svg {
    display: block;
}

.identity-submit {
    display: inline-flex;
    width: 100%;
    height: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 1px solid #1890ff;
    border-radius: 6px;
    background: #1890ff;
    color: #ffffff;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    transition: background-color 140ms ease, border-color 140ms ease;
}

.identity-submit:hover {
    border-color: #4096ff;
    background: #4096ff;
    color: #ffffff;
    text-decoration: none;
}

.identity-form--labeled .identity-submit {
    height: 44px;
    min-height: 44px;
}

.identity-card--agent .identity-submit {
    border-color: #13c2c2;
    background: #13c2c2;
}

.identity-card--agent .identity-submit:hover {
    border-color: #36cfc9;
    background: #36cfc9;
}

.identity-check {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 8px;
    color: #262626;
    font-weight: 400;
}

.identity-check input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #1890ff;
}

.identity-check span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.identity-card--agent a,
.identity-card--agent .identity-check a {
    color: #13c2c2;
}

.identity-forgot-link {
    margin-top: -4px;
    text-align: right;
}

.app-field-error {
    margin: -12px 0 0;
    color: #ff4d4f;
    font-size: 13px;
}

.identity-card__links,
.identity-user-footer nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 16px;
}

.identity-card__links {
    margin-top: 22px;
}

.identity-card__links a {
    color: #999999;
    font-size: 12px;
}

.identity-split {
    display: grid;
    min-height: 100vh;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: #ffffff;
}

.identity-split__form,
.identity-split__promo {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.identity-split__form {
    background: #ffffff;
}

.identity-user-panel {
    width: min(400px, 100%);
}

.identity-logo {
    display: grid;
    min-height: 120px;
    margin-bottom: 40px;
    place-items: center;
}

.identity-logo img {
    width: auto;
    max-width: 200px;
    height: auto;
    object-fit: contain;
}

.identity-user-panel > h1,
.identity-forgot-header {
    margin-bottom: 32px;
}

.identity-forgot-header p {
    margin: 8px 0 0;
    color: #8094ae;
}

.identity-register-link {
    margin-top: 16px;
    color: #8094ae;
    text-align: center;
}

.identity-register-link a {
    margin-left: 4px;
}

.identity-user-footer {
    margin-top: 40px;
    color: #8094ae;
    font-size: 13px;
    text-align: center;
}

.identity-user-footer p {
    margin: 16px 0 0;
}

.identity-user-footer--compact p {
    margin-top: 0;
}

.identity-split__promo {
    background: linear-gradient(135deg, #f5f6fa 0%, #e4e6ef 100%);
    text-align: center;
}

.identity-split__promo > div {
    width: min(450px, 100%);
}

.identity-promo-icon {
    display: grid;
    width: 120px;
    height: 120px;
    margin: 0 auto 32px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #1890ff 0%, #096dd9 100%);
    color: #ffffff;
}

.identity-promo-icon svg {
    width: 50px;
    height: 50px;
}

.identity-split__promo h2 {
    margin: 0 0 16px;
    color: #364a63;
    font-size: 24px;
    font-weight: 600;
}

.identity-split__promo p {
    margin: 0;
    color: #8094ae;
    font-size: 15px;
    line-height: 1.8;
}

.identity-loading {
    display: grid;
    justify-items: center;
    gap: 12px;
    color: #607086;
}

.identity-loading--card {
    min-height: 260px;
    align-content: center;
}

.identity-loading--inline {
    min-height: 210px;
    align-content: center;
}

.identity-not-found,
.identity-register-closed,
.identity-quick-login__error {
    display: grid;
    justify-items: center;
    gap: 12px;
    color: #8c8c8c;
    text-align: center;
}

.identity-not-found {
    width: min(520px, 100%);
    padding: 32px;
}

.identity-screen--not-found {
    background: #f5f5f5;
}

.identity-not-found__icon,
.identity-quick-login__error > span {
    display: grid;
    width: 120px;
    height: 120px;
    place-items: center;
    border-radius: 50%;
    background: #e6f4ff;
    color: #1677ff;
}

.identity-not-found__icon svg,
.identity-quick-login__error > span svg {
    width: 58px;
    height: 58px;
}

.identity-not-found h1,
.identity-register-closed h1,
.identity-quick-login__error h1 {
    margin: 0;
    color: #262626;
    font-size: 24px;
    font-weight: 500;
}

.identity-not-found p,
.identity-register-closed p,
.identity-quick-login__error p {
    margin: 0 0 8px;
}

.identity-register-closed {
    min-height: 300px;
    align-content: center;
}

.identity-register-closed > span {
    color: #faad14;
}

.identity-register-closed > span svg {
    width: 54px;
    height: 54px;
}

.identity-code-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.identity-code-row > .identity-input {
    padding: 8px 12px;
}

.identity-invite {
    display: grid;
    gap: 12px;
    margin-bottom: 20px;
}

.identity-info-panel {
    padding: 12px 16px;
    border: 1px solid #f0f0f0;
    border-radius: 6px;
    background: #ffffff;
}

.identity-info-panel h2 {
    margin: 0 0 10px;
    color: #262626;
    font-size: 14px;
    font-weight: 600;
}

.identity-info-panel dl {
    display: grid;
    gap: 6px;
    margin: 0;
}

.identity-info-panel dl > div {
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
}

.identity-info-panel dt {
    color: #64748b;
}

.identity-info-panel dd {
    min-width: 0;
    margin: 0;
    color: #1e293b;
    overflow-wrap: anywhere;
}

.identity-alert {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid #91caff;
    border-radius: 6px;
    background: #e6f4ff;
    color: #0958d9;
}

.identity-register-success {
    display: grid;
    gap: 16px;
    text-align: center;
}

.identity-register-success__icon {
    display: grid;
    place-items: center;
    color: #52c41a;
}

.identity-register-success__icon svg {
    width: 56px;
    height: 56px;
}

.identity-register-success h1 {
    margin: -4px 0 0;
    color: #262626;
    font-size: 20px;
    font-weight: 600;
}

.identity-register-success > p:not(.identity-alert) {
    margin: -12px 0 0;
    color: #8c8c8c;
}

.identity-register-success .identity-info-panel {
    background: #f8fafc;
    text-align: left;
}

.identity-dialog {
    letter-spacing: 0;
}

.identity-dialog .app-dialog__surface {
    max-height: calc(100vh - 32px);
}

.identity-article {
    max-height: 60vh;
    white-space: normal;
}

.identity-article img {
    height: auto;
}

.identity-article table {
    width: 100%;
    border-collapse: collapse;
}

.identity-article th,
.identity-article td {
    padding: 8px;
    border: 1px solid #d9d9d9;
}

.identity-captcha {
    width: min(390px, calc(100vw - 24px));
}

.identity-captcha__content {
    display: grid;
    justify-items: center;
    padding: 18px 20px;
}

.identity-captcha__content > section {
    width: min(310px, 100%);
}

.identity-captcha__image {
    position: relative;
    width: 310px;
    max-width: 100%;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    touch-action: none;
    user-select: none;
}

.identity-captcha__image > img {
    width: 100%;
    height: 100%;
    object-fit: fill;
    user-select: none;
}

.identity-captcha__piece {
    position: absolute;
    top: 0;
    left: 0;
    width: 50px !important;
    height: 50px !important;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.identity-captcha__track {
    position: relative;
    height: 40px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 4px;
    background: #f5f5f5;
    touch-action: none;
    user-select: none;
}

.identity-captcha__track-fill {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 100%;
    background: #e8f4ff;
}

.identity-captcha__slider {
    position: absolute;
    top: 0;
    left: 0;
    display: grid;
    width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    background: #ffffff;
    color: #666666;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    touch-action: none;
    user-select: none;
}

.identity-captcha__slider[data-dragging="true"],
.identity-captcha__track-fill[data-dragging="true"] {
    background: #1890ff;
    color: #ffffff;
}

.identity-captcha__slider svg {
    width: 18px;
    height: 18px;
}

.identity-captcha__track-tip {
    position: absolute;
    top: 50%;
    left: 50%;
    color: #999999;
    font-size: 13px;
    pointer-events: none;
    transform: translate(-50%, -50%);
    white-space: nowrap;
}

.identity-captcha__instruction,
.identity-captcha__count {
    margin: 0 0 8px;
    color: #666666;
    font-size: 13px;
}

.identity-captcha__instruction strong {
    margin-left: 4px;
    color: #1890ff;
    font-weight: 500;
}

.identity-captcha__image--click {
    cursor: crosshair;
}

.identity-captcha__point {
    position: absolute;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #1890ff;
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transform: translate(-50%, -50%);
}

.identity-captcha__count {
    margin: 8px 0 0;
    color: #999999;
    font-size: 12px;
}

.identity-captcha__actions {
    min-height: 56px;
    justify-content: space-between;
}

.identity-link-button {
    display: inline-flex;
    min-height: 32px;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #1890ff;
}

.identity-link-button svg {
    width: 16px;
    height: 16px;
}

.identity-status-dialog__content {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 32px 28px 24px;
    text-align: center;
}

.identity-status-dialog__icon {
    color: #faad14;
}

.identity-status-dialog__icon[data-closed-type="risk"] {
    color: #ff4d4f;
}

.identity-status-dialog__icon[data-closed-type="cascade"] {
    color: #ff7a45;
}

.identity-status-dialog__icon--pending {
    color: #faad14;
}

.identity-status-dialog__icon svg {
    width: 50px;
    height: 50px;
}

.identity-status-dialog h2,
.identity-status-dialog p {
    margin: 0;
}

.identity-status-dialog h2 {
    font-size: 18px;
}

.identity-status-dialog__reason,
.identity-status-dialog__contact {
    width: 100%;
    padding: 12px 16px;
    border-radius: 8px;
    background: #f5f5f5;
    text-align: left;
}

.identity-status-dialog__reason {
    border: 1px solid #ffccc7;
    background: #fff2f0;
}

.identity-status-dialog__reason strong {
    color: #ff4d4f;
}

.identity-status-dialog__contact p {
    margin-top: 6px;
    color: #555555;
}

.identity-status-dialog__contact--pending {
    border: 1px solid #ffe58f;
    background: #fffbe6;
    color: #ad6800;
}

.identity-status-dialog__tip {
    color: #8c8c8c;
    font-size: 13px;
}

.identity-quick-login {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background: #f5f7fb;
}

.identity-quick-login__loading {
    display: grid;
    justify-items: center;
    gap: 16px;
    color: #364a63;
    font-size: 15px;
}

.identity-quick-login__loading p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
}

.identity-quick-login__loading svg {
    width: 18px;
    height: 18px;
}

.identity-quick-login__error {
    width: min(520px, 100%);
    padding: 32px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

@media (max-width: 992px) {
    .identity-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .identity-split__promo {
        display: none;
    }

    .identity-split__form {
        min-height: 100vh;
    }
}

@media (max-width: 560px) {
    .identity-screen {
        padding: 20px 0;
    }

    .identity-card {
        width: 100%;
        border-radius: 0;
    }

    .identity-screen--admin .identity-card,
    .identity-screen--agent .identity-card {
        width: 100%;
        border-radius: 8px;
    }

    .identity-screen--register {
        padding: 24px 0;
    }

    .identity-card--register {
        width: 100%;
        border-radius: 6px;
    }

    .identity-split__form {
        padding: 40px;
    }

    .identity-logo {
        min-height: 120px;
        margin-bottom: 40px;
    }

    .identity-code-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .identity-code-row .app-button {
        justify-self: start;
    }

    .identity-captcha__content {
        padding: 16px;
    }

    .identity-captcha__track-tip {
        font-size: 12px;
    }
}

@media (max-width: 360px) {
    .identity-card,
    .identity-split__form {
        padding-right: 18px;
        padding-left: 18px;
    }

    .identity-check--agreements {
        font-size: 13px;
    }
}
