#login,
#regist,
#forget {
    min-height: 100vh;
    width: 100vw;
    position: relative;
    overflow: hidden;
    background: #eef5ff url('/clientarea/template/pc/dianle/img/dianle/login/bg.png') center / cover no-repeat;
    color: #16233f;
}

#login::before,
#regist::before,
#forget::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(238, 245, 255, 0.9) 0%, rgba(238, 245, 255, 0.42) 46%, rgba(226, 238, 255, 0.84) 100%),
        radial-gradient(circle at 16% 82%, rgba(34, 105, 255, 0.13), transparent 26%);
}

.container-back {
    display: none !important;
}

.login-container {
    width: min(12.8rem, calc(100vw - 1.2rem));
    min-height: 6.2rem;
    height: min(6.9rem, calc(100vh - 1.35rem));
    display: grid;
    grid-template-columns: minmax(5rem, 1fr) 4.5rem;
    align-items: center;
    gap: 0.56rem;
    position: relative;
    z-index: 1;
    background: transparent;
}

.login-jump-btn {
    position: fixed;
    top: 0.32rem;
    right: 0.64rem;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 0.18rem;
}

.login-jump-btn .btn {
    height: 34px;
    padding: 0 18px;
    border-radius: 6px;
    border: 1px solid rgba(36, 107, 254, 0.16);
    background: rgba(255, 255, 255, 0.72);
    color: #246bfe;
    font-weight: 700;
}

.login-jump-btn .btn a {
    color: inherit;
}

.login-jump-btn .lang-box {
    display: flex;
    align-items: center;
    gap: 0.24rem;
    color: #7b879d;
    font-family: "siyuan", "PingFang SC", sans-serif;
    font-size: 14px;
}

.login-jump-btn .lang-box span {
    position: relative;
    padding: 0.08rem 0;
    cursor: pointer;
}

.login-jump-btn .lang-box span::before {
    content: none;
}

.login-jump-btn .lang-box span.active,
.login-jump-btn .lang-box span.active::before {
    color: #111827;
    font-weight: 700;
}

.login-jump-btn .lang-box span.active::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0.28rem;
    height: 0.03rem;
    transform: translateX(-50%);
    border-radius: 99px;
    background: #246bfe;
}

.container-before {
    display: contents;
}

.dianle-back {
    min-height: 5.1rem;
    position: relative;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.08rem 0 0 0.08rem;
    background: transparent;
}

.dianle-back .dianle-logo {
    width: 1.68rem;
    height: 0.46rem;
    margin: 0 0 0.44rem;
    display: flex;
    align-items: center;
}

.dianle-back .dianle-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dy-auth-copy {
    position: relative;
    z-index: 2;
}

.dy-auth-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.08rem;
    height: 0.26rem;
    padding: 0 0.12rem;
    border: 1px solid rgba(36, 107, 254, 0.18);
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.7);
    color: #246bfe;
    font-size: 0.12rem;
    font-weight: 700;
    font-family: "siyuan", "PingFang SC", sans-serif;
}

.dy-auth-badge::before {
    content: "";
    width: 0.07rem;
    height: 0.07rem;
    border-radius: 50%;
    background: #17c3ff;
    box-shadow: 0 0 0 0.04rem rgba(23, 195, 255, 0.12);
}

.dy-auth-kicker {
    margin-top: 0.18rem;
    color: #246bfe;
    font-size: 0.14rem;
    line-height: 1.4;
    font-weight: 800;
    font-family: "siyuan", "PingFang SC", sans-serif;
}

.dy-auth-copy h1 {
    max-width: 5.05rem;
    margin: 0.08rem 0 0;
    color: #101f3f;
    font-size: 0.34rem;
    line-height: 1.22;
    font-weight: 900;
    font-family: "siyuan", "PingFang SC", sans-serif;
    letter-spacing: 0;
}

.dy-auth-copy h1 span {
    color: #246bfe;
}

.dy-auth-copy p {
    max-width: 4.72rem;
    margin: 0.13rem 0 0;
    color: #66758f;
    font-size: 0.145rem;
    line-height: 1.7;
    font-weight: 500;
    font-family: "siyuan", "PingFang SC", sans-serif;
}

.dy-auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1.26rem);
    gap: 0.14rem;
    margin-top: 0.27rem;
}

.dy-auth-metrics div {
    height: 0.76rem;
    position: relative;
    padding: 0.12rem 0.14rem;
    overflow: hidden;
    border: 1px solid rgba(193, 211, 238, 0.76);
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 0.18rem 0.46rem rgba(70, 104, 163, 0.08);
}

.dy-auth-metrics div::after {
    content: "";
    position: absolute;
    right: -0.24rem;
    top: -0.24rem;
    width: 0.64rem;
    height: 0.64rem;
    border-radius: 50%;
    background: rgba(36, 107, 254, 0.08);
}

.dy-auth-metrics strong {
    display: block;
    color: #246bfe;
    font-size: 0.21rem;
    line-height: 1;
    font-weight: 900;
}

.dy-auth-metrics span {
    display: block;
    margin-top: 0.07rem;
    color: #6d7890;
    font-size: 0.12rem;
    font-weight: 700;
}

.dy-auth-lines {
    position: absolute;
    left: 0.28rem;
    bottom: 0.08rem;
    width: 5.28rem;
    height: 1.54rem;
    pointer-events: none;
    opacity: 0.42;
    z-index: 1;
}

.dy-auth-lines::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0.92rem;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(36, 107, 254, 0.22), transparent);
}

.dy-auth-lines::after {
    content: "";
    position: absolute;
    left: 1.04rem;
    top: 0.26rem;
    width: 3.6rem;
    height: 1.12rem;
    border: 1px solid rgba(36, 107, 254, 0.12);
    border-radius: 0.18rem;
    transform: skewX(-14deg);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.26), rgba(36, 107, 254, 0.04));
}

.dy-auth-lines span {
    position: absolute;
    width: 0.78rem;
    height: 0.52rem;
    border: 1px solid rgba(36, 107, 254, 0.16);
    border-radius: 0.1rem;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 0.18rem 0.46rem rgba(70, 104, 163, 0.09);
}

.dy-auth-lines span::before {
    content: "";
    position: absolute;
    left: 0.14rem;
    top: 0.14rem;
    width: 0.28rem;
    height: 0.04rem;
    border-radius: 99px;
    background: #246bfe;
    box-shadow: 0 0.1rem 0 rgba(36, 107, 254, 0.18);
}

.dy-auth-lines span:nth-child(1) {
    left: 0.3rem;
    top: 0.82rem;
}

.dy-auth-lines span:nth-child(2) {
    left: 2.38rem;
    top: 0.32rem;
}

.dy-auth-lines span:nth-child(3) {
    right: 0.44rem;
    top: 1.04rem;
}

.dy-auth-lines i {
    position: absolute;
    width: 0.08rem;
    height: 0.08rem;
    border-radius: 50%;
    background: #17c3ff;
    box-shadow: 0 0 0 0.06rem rgba(23, 195, 255, 0.12);
}

.dy-auth-lines i:nth-of-type(1) {
    left: 1.84rem;
    top: 1.04rem;
}

.dy-auth-lines i:nth-of-type(2) {
    left: 4.44rem;
    top: 0.8rem;
}

.login {
    width: 4.5rem;
    max-height: calc(100vh - 1.2rem);
    padding: 0.38rem 0.38rem 0.34rem;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(208, 222, 243, 0.88);
    border-radius: 0.12rem;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 0.24rem 0.72rem rgba(51, 85, 148, 0.16);
    box-sizing: border-box;
    font-size: 14px;
    font-family: "siyuan", "PingFang SC", sans-serif;
    line-height: 1.4;
}

.login::-webkit-scrollbar {
    width: 5px;
}

.login::-webkit-scrollbar-thumb {
    border-radius: 99px;
    background: rgba(36, 107, 254, 0.24);
}

.login-text {
    display: flex;
    flex-direction: column;
    margin-bottom: 0.26rem;
    padding-right: 0.52rem;
}

.login-text-title {
    color: #111827;
    font-size: 0.26rem;
    line-height: 1.25;
    font-weight: 900;
    font-family: "siyuan", "PingFang SC", sans-serif;
}

.login-text-regist {
    margin-top: 0.08rem;
    color: #7b879d;
    font-size: 0.13rem;
    line-height: 1.5;
    font-family: "siyuan", "PingFang SC", sans-serif;
}

.login-text-regist a,
.rember-item a,
.read-item a {
    color: #246bfe !important;
    cursor: pointer;
    font-weight: 700;
}

.login-form {
    margin-top: 0;
}

.login-top {
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0.28rem;
    height: 0.4rem;
    margin-bottom: 0.18rem;
    border-bottom: 1px solid #e7edf8;
}

.login-email,
.login-phone {
    position: relative;
    height: 0.4rem;
    color: #7b879d;
    font-size: 0.15rem;
    line-height: 1.4;
    font-weight: 700;
    cursor: pointer;
}

.login-email {
    margin-right: 0;
}

.login-phone {
    margin-left: 0;
}

.active {
    color: #246bfe;
    border-bottom: 0;
}

.active::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 0.03rem;
    border-radius: 99px 99px 0 0;
    background: #246bfe;
}

.form-main {
    margin-top: 0;
}

.form-item {
    margin-top: 0.16rem;
}

.custom-form {
    margin-top: 0.16rem;
}

.custom-form .el-form-item {
    margin-bottom: 0.16rem;
}

.custom-form .el-form-item__label {
    padding-bottom: 0.08rem;
    color: #34415b;
    font-size: 0.13rem;
    line-height: 1.2;
    font-weight: 700;
}

.custom-form .el-select {
    width: 100%;
}

.el-input__inner,
.el-textarea__inner {
    height: 0.46rem;
    line-height: 0.46rem;
    border: 1px solid #d9e2f1;
    border-radius: 0.06rem;
    background: #fff;
    color: #111827;
    font-family: "siyuan", "PingFang SC", sans-serif;
    font-size: 0.14rem;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.el-textarea__inner {
    height: auto;
    min-height: 0.86rem !important;
    line-height: 1.5;
}

.el-input__inner:hover,
.el-textarea__inner:hover {
    border-color: #b9c9e6;
}

.el-input__inner:focus,
.el-textarea__inner:focus {
    border-color: #246bfe;
    box-shadow: 0 0 0 3px rgba(36, 107, 254, 0.12);
}

.input-with-select .el-input-group__prepend {
    width: 0.74rem;
    border-color: #d9e2f1;
    border-radius: 0.06rem 0 0 0.06rem;
    background: #fff;
}

.input-with-select .el-input__inner {
    border-radius: 0 0.06rem 0.06rem 0;
}

.code-item {
    position: relative;
    display: block;
}

.code-item .el-input__inner {
    padding-right: 1.1rem;
}

.code-item .el-button--primary {
    position: absolute;
    right: 0.14rem;
    top: 50%;
    min-width: 0;
    height: auto;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #246bfe;
    font-size: 0.13rem;
    font-weight: 700;
}

.el-button--primary {
    border-color: transparent;
    background: #246bfe;
}

.login-btn,
.el-button.login-btn {
    width: 100%;
    height: 0.46rem;
    margin-top: 0.08rem;
    border: 0;
    border-radius: 0.06rem;
    background: #246bfe;
    box-shadow: 0 0.12rem 0.24rem rgba(36, 107, 254, 0.24);
    color: #fff;
    font-size: 0.15rem;
    font-weight: 800;
    font-family: "siyuan", "PingFang SC", sans-serif;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-btn:hover,
.el-button.login-btn:hover,
.login-btn:focus,
.el-button.login-btn:focus {
    border: 0;
    background: #1d5fff;
    box-shadow: 0 0.16rem 0.28rem rgba(36, 107, 254, 0.28);
    transform: translateY(-1px);
}

.pass-btn {
    width: 100%;
    height: 0.4rem;
    margin: 0.12rem 0 0 !important;
    border-radius: 0.06rem;
    border-color: #d9e2f1;
    background: #fff;
    color: #34415b;
    font-weight: 700;
}

.rember-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 0.14rem;
    color: #69758c;
    font-size: 0.13rem;
    font-family: "siyuan", "PingFang SC", sans-serif;
}

.read-item {
    margin-top: 0.16rem;
}

.read-text {
    flex: inherit;
    padding: 0 0 0 0.08rem;
    color: #69758c;
    font-family: "siyuan", "PingFang SC", sans-serif;
    font-size: 0.13rem;
    font-weight: 500;
    line-height: 1.7;
}

.dianle-position {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0.02rem;
    margin-top: 0.18rem;
}

.dianle-position .el-checkbox {
    line-height: 1.4;
}

.dianle-position .el-checkbox__label {
    color: #69758c;
    font-family: "siyuan", "PingFang SC", sans-serif;
    font-size: 0.13rem;
    line-height: 1.7;
}

.el-checkbox__inner {
    width: 14px;
    height: 14px;
    border-color: #ccd6e7;
    border-radius: 2px;
    background: #fff;
}

.el-checkbox__input.is-checked .el-checkbox__inner,
.el-checkbox__input.is-indeterminate .el-checkbox__inner {
    background-color: #246bfe;
    border-color: #246bfe;
}

.el-alert {
    border-radius: 0.08rem;
}

.line-item {
    margin-top: 0.24rem;
}

.line-item .el-divider__text {
    color: #9aa6ba;
    background: #fff;
}

.login-type {
    display: flex;
    justify-content: center;
    gap: 0.14rem;
}

.oauth-item {
    width: 0.4rem;
    height: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d9e2f1;
    border-radius: 0.06rem;
    background: #fff;
    cursor: pointer;
}

.oauth-img {
    width: 0.22rem;
    height: 0.22rem;
}

.login .qr-code {
    position: absolute;
    right: 0.28rem;
    top: 0.32rem;
    width: 0.42rem;
    height: 0.42rem;
    display: grid;
    place-items: center;
    overflow: hidden;
    border: 1px solid #dce7fb;
    border-radius: 0.08rem;
    background: #f6f9ff;
    cursor: pointer;
}

.login .qr-code svg {
    width: 0.3rem;
    height: 0.3rem;
}

.login .qr-code svg path,
.login .qr-code .login-icon path {
    fill: #246bfe;
}

.qr-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 2.8rem;
}

.qr-box-img {
    width: 2rem;
    height: 2rem;
    position: relative;
    padding: 0.1rem;
    border: 1px solid #e7edf8;
    border-radius: 0.12rem;
    background: #fff;
}

.qr-box-img img {
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.qr-box-tips {
    margin-top: 0.14rem;
    color: #69758c;
    text-align: center;
}

.qr-expire-time {
    position: absolute;
    inset: 0.1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.08rem;
    border-radius: 0.08rem;
    background: rgba(17, 24, 39, 0.62);
    color: #fff;
    cursor: pointer;
}

.qr-box-select-account {
    padding: 0.22rem;
    border: 1px solid #e7edf8;
    border-radius: 0.12rem;
    background: #fff;
}

.qr-box-back {
    margin-bottom: 0.18rem;
    color: #246bfe;
    cursor: pointer;
}

.empty-input {
    display: none;
}

@media screen and (max-width: 1200px) {
    .login-container {
        width: min(10.6rem, calc(100vw - 0.56rem));
        grid-template-columns: 1fr 4.32rem;
        gap: 0.36rem;
    }

    .dy-auth-metrics {
        grid-template-columns: repeat(3, 1.28rem);
    }

    .dy-auth-lines {
        width: 5rem;
        opacity: 0.56;
    }
}

@media screen and (max-width: 768px) {
    #login,
    #regist,
    #forget {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        background: #eef5ff url('/clientarea/template/pc/dianle/dianle/img/yidong_back.webp') center / cover no-repeat;
    }

    .login-container {
        width: 100%;
        min-height: 100vh;
        height: auto;
        display: block;
        padding: 0.2rem;
        box-sizing: border-box;
    }

    .login-jump-btn {
        display: none;
    }

    .dianle-back {
        min-height: auto;
        padding: 0;
        text-align: center;
    }

    .dianle-back .dianle-logo {
        width: 1.75rem;
        height: 0.46rem;
        margin: 0.18rem auto 0.18rem;
    }

    .dy-auth-copy {
        display: none;
    }

    .dy-auth-lines {
        display: none;
    }

    .login {
        width: 100%;
        max-height: none;
        padding: 0.28rem 0.22rem;
        border-radius: 0.14rem;
    }

    .login-text {
        margin-bottom: 0.2rem;
        padding-right: 0.48rem;
    }

    .login-text-title {
        font-size: 0.24rem;
    }

    .login-top {
        height: 0.4rem;
        gap: 0.24rem;
    }

    .login-email,
    .login-phone {
        font-size: 0.15rem;
    }

    .el-input__inner {
        height: 42px;
        line-height: 42px;
        font-size: 13px;
    }

    .form-item,
    .custom-form,
    .read-item {
        margin-top: 14px;
    }

    .login-btn,
    .el-button.login-btn {
        height: 44px;
        font-size: 14px;
    }

    .rember-item,
    .login-text-regist,
    .read-text,
    .dianle-position .el-checkbox__label {
        font-size: 12px;
    }

    .login .qr-code {
        right: 0.2rem;
        top: 0.24rem;
        width: 0.4rem;
        height: 0.4rem;
    }
}

/* DangYun 官网认证页：复用项目登录逻辑，仅替换视觉外壳 */
#login,
#regist {
    --dy-auth-background: oklch(0.955 0.014 256);
    --dy-auth-foreground: oklch(0.21 0.02 260);
    --dy-auth-card: oklch(1 0 0);
    --dy-auth-primary: oklch(0.53 0.21 262);
    --dy-auth-secondary: oklch(0.93 0.022 256);
    --dy-auth-muted: oklch(0.945 0.014 256);
    --dy-auth-muted-foreground: oklch(0.52 0.02 260);
    --dy-auth-border: oklch(0.92 0.01 260);
    min-height: 100vh;
    height: auto;
    width: 100%;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--dy-auth-foreground);
    background: var(--dy-auth-background);
    font-family: "Geist", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#login::before,
#regist::before {
    content: none;
}

#login .login-container,
#regist .login-container {
    width: 100%;
    min-height: 100vh;
    height: auto;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 0;
    background: transparent;
    box-sizing: border-box;
}

#login .login-jump-btn,
#regist .login-jump-btn,
#login .container-back,
#regist .container-back {
    display: none !important;
}

#login .container-before,
#regist .container-before {
    display: contents;
}

#login .dianle-back,
#regist .dianle-back {
    grid-column: 1;
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    min-height: 640px;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    overflow: hidden;
    color: #fff;
    text-align: left;
    background: var(--dy-auth-primary);
    box-sizing: border-box;
}

.dy-auth-brand {
    display: inline-flex;
    height: 32px;
    align-items: center;
    gap: 8px;
    color: #fff;
}

.dy-auth-brand:hover {
    color: #fff;
}

.dy-auth-brand-mark {
    width: 32px;
    height: 32px;
    display: inline-flex;
    flex: 0 0 32px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: var(--dy-auth-primary);
}

.dy-auth-brand-mark svg {
    width: 20px;
    height: 20px;
}

.dy-auth-brand-name {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    line-height: 24px;
}

#login .dy-auth-copy,
#regist .dy-auth-copy {
    display: block;
    position: static;
    z-index: auto;
}

#login .dy-auth-copy h1,
#regist .dy-auth-copy h1 {
    max-width: 420px;
    margin: 0;
    color: #fff;
    font-size: 30px;
    font-weight: 700;
    line-height: 38px;
}

.dy-auth-highlights {
    display: grid;
    gap: 16px;
    margin: 32px 0 0;
    padding: 0;
    list-style: none;
}

.dy-auth-highlights li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255, 255, 255, 0.84);
    font-size: 14px;
    line-height: 20px;
}

.dy-auth-highlights li > span {
    width: 36px;
    height: 36px;
    display: inline-flex;
    flex: 0 0 36px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.dy-auth-highlights svg {
    width: 18px;
    height: 18px;
}

.dy-auth-copyright {
    margin: 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    line-height: 16px;
}

.dy-auth-mobile-title {
    display: none;
}

.dy-auth-mobile-copyright {
    display: none;
}

#login .login,
#regist .login {
    grid-column: 2;
    position: relative;
    width: 100%;
    min-height: 100vh;
    max-height: none;
    margin: 0;
    padding: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: visible;
    border: 0;
    border-radius: 0;
    color: var(--dy-auth-foreground);
    background: var(--dy-auth-background);
    box-shadow: none;
    box-sizing: border-box;
}

#regist .login {
    justify-content: flex-start;
    overflow-y: auto;
}

#regist .login > .login-text {
    margin-top: auto;
}

#regist .login > .login-form {
    margin-bottom: auto;
}

#login .login > .login-text,
#login .login > .login-form,
#regist .login > .login-text,
#regist .login > .login-form {
    width: 100%;
    max-width: 384px;
}

#login .login-text,
#regist .login-text {
    margin: 0 0 32px;
    padding: 0;
}

#login .login-text-title,
#regist .login-text-title {
    color: var(--dy-auth-foreground);
    font-size: 24px;
    font-weight: 700;
    line-height: 32px;
}

.dy-auth-subtitle {
    margin-top: 8px;
    color: var(--dy-auth-muted-foreground);
    font-size: 14px;
    line-height: 20px;
}

#login .login-form,
#regist .login-form {
    margin: 0;
}

#login .login-top,
#regist .login-top {
    height: 36px;
    margin: 0 0 16px;
    gap: 24px;
    border-bottom-color: var(--dy-auth-border);
}

#login .login-email,
#login .login-phone,
#regist .login-email,
#regist .login-phone {
    height: 36px;
    color: var(--dy-auth-muted-foreground);
    font-size: 14px;
    line-height: 24px;
}

#login .login-email.active,
#login .login-phone.active,
#regist .login-email.active,
#regist .login-phone.active {
    color: var(--dy-auth-primary);
}

#login .form-main,
#regist .form-main {
    margin: 0;
}

#login .form-item,
#regist .form-item,
#login .custom-form,
#regist .custom-form,
#login .read-item,
#regist .read-item {
    margin-top: 16px;
}

#login .dy-auth-field,
#regist .dy-auth-field {
    position: relative;
}

#login .form-main > .dy-auth-field:first-child,
#regist .form-main > .dy-auth-field:first-child {
    margin-top: 0;
}

.dy-auth-field-label {
    display: block;
    margin-bottom: 6px;
    color: var(--dy-auth-foreground);
    font-size: 14px;
    font-weight: 600;
    line-height: 20px;
}

.dy-auth-field-icon {
    position: absolute;
    z-index: 2;
    left: 13px;
    bottom: 14px;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dy-auth-muted-foreground);
    pointer-events: none;
}

.dy-auth-field-icon svg {
    width: 17px;
    height: 17px;
}

#login .dy-auth-field .el-input,
#regist .dy-auth-field .el-input {
    width: 100%;
}

#login .dy-auth-field .el-input__inner,
#regist .dy-auth-field .el-input__inner,
#login .custom-form .el-input__inner,
#regist .custom-form .el-input__inner,
#login .custom-form .el-textarea__inner,
#regist .custom-form .el-textarea__inner {
    width: 100%;
    height: 46px;
    line-height: 44px;
    padding-left: 40px;
    border: 1px solid var(--dy-auth-border);
    border-radius: 12px;
    color: var(--dy-auth-foreground);
    background: oklch(0.945 0.014 256 / 60%);
    box-shadow: none;
    box-sizing: border-box;
    font-size: 14px;
}

#login .dy-auth-field .el-input__inner:focus,
#regist .dy-auth-field .el-input__inner:focus,
#login .custom-form .el-input__inner:focus,
#regist .custom-form .el-input__inner:focus,
#login .custom-form .el-textarea__inner:focus,
#regist .custom-form .el-textarea__inner:focus {
    border-color: var(--dy-auth-primary);
    background: var(--dy-auth-card);
    box-shadow: 0 0 0 2px oklch(0.53 0.21 262 / 12%);
}

#login .custom-form .el-input__inner,
#regist .custom-form .el-input__inner {
    padding-left: 12px;
}

#login .custom-form .el-textarea__inner,
#regist .custom-form .el-textarea__inner {
    height: auto;
    min-height: 86px;
    padding: 12px;
    line-height: 1.5;
}

#login .dy-auth-field.is-phone .dy-auth-field-icon,
#regist .dy-auth-field.is-phone .dy-auth-field-icon {
    display: none;
}

#login .dy-auth-field.is-phone .el-input__inner,
#regist .dy-auth-field.is-phone .el-input__inner {
    padding-left: 12px;
}

#login .input-with-select .el-input-group__prepend,
#regist .input-with-select .el-input-group__prepend {
    border-color: var(--dy-auth-border);
    border-radius: 12px 0 0 12px;
    background: oklch(0.945 0.014 256 / 60%);
}

#login .code-item .el-input__inner,
#regist .code-item .el-input__inner {
    padding-right: 112px;
}

#login .code-item .el-button--primary,
#regist .code-item .el-button--primary {
    top: 26px;
    right: 14px;
    height: 46px;
    transform: none;
    display: inline-flex;
    align-items: center;
    color: var(--dy-auth-primary);
    font-size: 13px;
    font-weight: 600;
    line-height: 20px;
    white-space: nowrap;
}

#login .rember-item,
#regist .rember-item {
    margin-top: 16px;
    color: var(--dy-auth-muted-foreground);
    font-size: 14px;
}

.dy-auth-login-agreement {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 4px;
}

#login .dy-auth-login-agreement .read-text {
    max-width: 250px;
    padding-left: 0;
    font-size: 12px;
    line-height: 16px;
}

.dy-auth-forgot,
.dy-auth-switch a,
#login .read-item a,
#regist .read-item a {
    color: var(--dy-auth-primary) !important;
    font-weight: 600;
    cursor: pointer;
}

#login .login-btn,
#login .el-button.login-btn,
#regist .login-btn,
#regist .el-button.login-btn {
    height: 36px;
    margin-top: 0;
    border-radius: 12px;
    background: var(--dy-auth-primary);
    box-shadow: none;
    font-size: 14px;
    font-weight: 500;
}

#login .login-btn:hover,
#login .el-button.login-btn:hover,
#regist .login-btn:hover,
#regist .el-button.login-btn:hover {
    background: color-mix(in oklab, var(--dy-auth-primary) 80%, black);
    box-shadow: none;
    transform: none;
}

#login .dianle-position,
#regist .dianle-position {
    justify-content: flex-start;
    margin-top: 14px;
}

#login .read-text,
#regist .read-text,
#login .dianle-position .el-checkbox__label,
#regist .dianle-position .el-checkbox__label {
    color: var(--dy-auth-muted-foreground);
    font-size: 13px;
    line-height: 20px;
}

.dy-auth-switch {
    margin: 20px 0 0;
    color: var(--dy-auth-muted-foreground);
    text-align: center;
    font-size: 14px;
    line-height: 20px;
}

#login .pass-btn,
#regist .pass-btn {
    height: 36px;
    border-radius: 12px;
}

#login .line-item .el-divider__text,
#regist .line-item .el-divider__text {
    background: var(--dy-auth-background);
}

#login .login .qr-code,
#regist .login .qr-code {
    top: 32px;
    right: 32px;
    border-color: var(--dy-auth-border);
    background: oklch(0.945 0.014 256 / 60%);
}

@media screen and (max-width: 1023px) {
    #login,
    #regist {
        background: color-mix(in oklab, var(--dy-auth-secondary) 40%, var(--dy-auth-background));
    }

    #login .login-container,
    #regist .login-container {
        display: block;
    }

    #login .dianle-back,
    #regist .dianle-back {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 228px;
        padding: 36px 24px 64px;
        justify-content: flex-start;
    }

    #login .dianle-back::before,
    #regist .dianle-back::before {
        content: "";
        position: absolute;
        inset: 0;
        pointer-events: none;
        background: radial-gradient(120% 80% at 85% 0%, oklch(0.62 0.2 262 / 55%), transparent 60%);
        opacity: 0.7;
    }

    #login .dianle-back > *,
    #regist .dianle-back > * {
        position: relative;
        z-index: 1;
    }

    #login .dy-auth-copy,
    #regist .dy-auth-copy,
    .dy-auth-copyright {
        display: none;
    }

    .dy-auth-mobile-title {
        display: block;
        margin-top: 38px;
    }

    .dy-auth-mobile-title h1 {
        margin: 0;
        color: #fff;
        font-size: 24px;
        font-weight: 700;
        line-height: 32px;
    }

    .dy-auth-mobile-title p {
        margin: 8px 0 0;
        color: rgba(255, 255, 255, 0.8);
        font-size: 14px;
        line-height: 20px;
    }

    #login .login,
    #regist .login {
        width: calc(100% - 32px);
        min-height: 0;
        margin: -32px 16px 0;
        padding: 24px;
        align-items: stretch;
        justify-content: flex-start;
        overflow: visible;
        border: 1px solid var(--dy-auth-border);
        border-radius: 24px;
        background: var(--dy-auth-card);
        box-shadow: 0 20px 45px oklch(0.53 0.21 262 / 8%);
    }

    #regist .login > .login-text,
    #regist .login > .login-form {
        margin-top: 0;
        margin-bottom: 0;
    }

    #login .login > .login-text,
    #login .login > .login-form,
    #regist .login > .login-text,
    #regist .login > .login-form {
        max-width: none;
    }

    #login .login-text,
    #regist .login-text {
        display: none;
    }

    #login .line-item .el-divider__text,
    #regist .line-item .el-divider__text {
        background: var(--dy-auth-card);
    }

    #login .login .qr-code,
    #regist .login .qr-code {
        top: 18px;
        right: 18px;
    }

    .dy-auth-mobile-copyright {
        display: block;
        margin: 0;
        padding: 32px 24px;
        color: var(--dy-auth-muted-foreground);
        text-align: center;
        font-size: 12px;
        line-height: 16px;
    }
}

@media screen and (max-width: 480px) {
    #login .dianle-back,
    #regist .dianle-back {
        padding-right: 24px;
        padding-left: 24px;
    }

    #login .login,
    #regist .login {
        padding: 24px;
    }
}
