@charset "UTF-8";
/*
 * 琳东技术吧 - 用户登录 / 注册 / 手机登录页专属样式（技术风格）
 * 由 user/login/*.php 模板引入。
 * 结构：浅色科技网格页面背景 + 左侧深色终端品牌面板 + 右侧表单区。
 */

.ld-auth-page {
    position: relative;
    min-height: calc(100vh - 62px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: #f4f7fb;
    overflow: hidden;
    box-sizing: border-box;
}
.ld-auth-page:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(0, 110, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 110, 255, .05) 1px, transparent 1px);
    background-size: 42px 42px;
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 75%);
    pointer-events: none;
}
.ld-auth-page:after {
    content: "</>";
    position: absolute;
    right: 5%;
    top: 12%;
    font-family: Consolas, monaco, monospace;
    font-size: 20px;
    letter-spacing: 3px;
    color: rgba(0, 110, 255, .14);
    pointer-events: none;
}
.ld-auth-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    pointer-events: none;
}
.ld-auth-glow.g1 {
    width: 420px;
    height: 420px;
    left: -140px;
    bottom: -160px;
    background: rgba(0, 110, 255, .16);
}
.ld-auth-glow.g2 {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -120px;
    background: rgba(0, 198, 255, .14);
}

/* ---------- 卡片 ---------- */
.ld-auth-card {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1000px;
    display: grid;
    grid-template-columns: 5fr 6fr;
    background: #fff;
    border: 1px solid #eef1f5;
    border-radius: 18px;
    box-shadow: 0 30px 80px rgba(10, 30, 80, .14);
    overflow: hidden;
    animation: ld-auth-up .5s ease both;
}
@keyframes ld-auth-up {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ---------- 左侧品牌终端面板 ---------- */
.ld-auth-brand {
    position: relative;
    padding: 34px 32px;
    background: linear-gradient(160deg, #0a1420 0%, #0d2138 55%, #0f3a5f 100%);
    color: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}
.ld-auth-brand:before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
    background-size: 30px 30px;
    pointer-events: none;
}
.ld-brand-term {
    position: relative;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 12px;
    overflow: hidden;
}
.ld-brand-term-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .06);
    border-bottom: 1px solid rgba(255, 255, 255, .1);
}
.ld-brand-term-bar .ld-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.ld-dot-r { background: #ff5f57; }
.ld-dot-y { background: #febc2e; }
.ld-dot-g { background: #28c840; }
.ld-brand-term-bar span.ld-term-path {
    margin-left: 8px;
    font-family: Consolas, monaco, monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, .55);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.ld-code-block {
    margin: 0;
    padding: 16px 16px 18px;
    font-family: Consolas, monaco, monospace;
    font-size: 13px;
    line-height: 2;
    color: #9fb6d0;
    overflow-x: auto;
}
.ld-code-block .c-key  { color: #56c8ff; }
.ld-code-block .c-str  { color: #7ce38b; }
.ld-code-block .c-fn   { color: #ffd479; }
.ld-code-block .c-com  { color: #5d7288; }
.ld-code-block .c-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #00c6ff;
    vertical-align: -2px;
    animation: ld-blink 1.1s steps(1) infinite;
}
@keyframes ld-blink { 50% { opacity: 0; } }

.ld-brand-info {
    position: relative;
    margin-top: auto;
    padding-top: 26px;
}
.ld-brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: 1px;
}
.ld-brand-logo .ld-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: linear-gradient(135deg, #006eff 0%, #00c6ff 100%);
    font-family: Consolas, monaco, monospace;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 20px rgba(0, 110, 255, .4);
}
.ld-brand-slogan {
    margin: 10px 0 18px;
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
    letter-spacing: .5px;
}
.ld-feats {
    list-style: none;
    margin: 0;
    padding: 0;
}
.ld-feats li {
    display: flex;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, .82);
    padding: 7px 0;
}
.ld-feats li:before {
    content: ">";
    font-family: Consolas, monaco, monospace;
    font-weight: 700;
    color: #00c6ff;
    margin-right: 10px;
}
.ld-feats li i {
    margin-right: 7px;
    color: #6fd3ff;
    font-size: 16px;
}
.ld-brand-foot {
    position: relative;
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255, 255, 255, .16);
    font-family: Consolas, monaco, monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, .4);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

/* ---------- 右侧表单区 ---------- */
.ld-auth-form {
    padding: 40px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ld-auth-title h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #232a33;
}
.ld-auth-title h3 .ld-title-code {
    font-family: Consolas, monaco, monospace;
    color: #006eff;
    margin-right: 8px;
}
.ld-auth-title p {
    margin: 8px 0 0;
    font-size: 13px;
    color: #93a0af;
}
.ld-auth-title p a {
    color: #006eff;
    font-weight: 600;
}
.ld-oauth {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 4px;
}
.ld-oauth-label {
    font-size: 12px;
    color: #a5aeb9;
    white-space: nowrap;
}
.ld-oauth a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e3e9f1;
    background: #f8fafd;
    color: #5c6875;
    font-size: 19px;
    transition: all .25s;
}
.ld-oauth a:hover {
    color: #fff;
    background: linear-gradient(135deg, #006eff, #00c6ff);
    border-color: transparent;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 110, 255, .3);
}
.ld-oauth a.qq:hover      { background: linear-gradient(135deg, #12b7f5, #4fc3f7); }
.ld-oauth a.weixin:hover,
.ld-oauth a.mpweixin:hover { background: linear-gradient(135deg, #09bb07, #35d434); }
.ld-oauth a.weibo:hover   { background: linear-gradient(135deg, #e6162d, #ff6a7c); }

.ld-auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0;
    font-size: 12px;
    color: #b6c0cc;
}
.ld-auth-divider:before,
.ld-auth-divider:after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #e5eaf1);
}
.ld-auth-divider:after {
    background: linear-gradient(90deg, #e5eaf1, transparent);
}

.ld-field {
    display: flex;
    align-items: center;
    height: 48px;
    border: 1px solid #e3e9f1;
    border-radius: 10px;
    padding: 0 14px;
    margin-bottom: 14px;
    background: #f8fafd;
    transition: all .22s;
}
.ld-field:focus-within {
    border-color: #006eff;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(0, 110, 255, .13);
}
.ld-field > i {
    color: #9aa7b6;
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
    transition: color .22s;
}
.ld-field:focus-within > i {
    color: #006eff;
}
.ld-field input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: #333;
    height: 100%;
    box-shadow: none;
}
.ld-field input::placeholder {
    color: #aeb8c4;
}
/* 验证码行：输入 + 按钮 */
.ld-field .ld-captcha-btn,
button.ld-inline-btn {
    flex-shrink: 0;
    margin-left: 10px;
    height: 34px;
    line-height: 34px;
    padding: 0 14px;
    font-size: 13px;
    border-radius: 8px;
    border: none;
    color: #fff;
    background: linear-gradient(90deg, #006eff, #00c6ff);
    cursor: pointer;
    white-space: nowrap;
    transition: filter .2s;
}
.ld-field .ld-captcha-btn:hover,
button.ld-inline-btn:hover {
    filter: brightness(1.08);
}
.ld-field img.ld-captcha-img {
    flex-shrink: 0;
    margin-left: 10px;
    height: 36px !important;
    width: auto;
    cursor: pointer;
}

.ld-aux-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 16px;
}
.ld-aux-row a {
    color: #8b95a1;
    transition: color .2s;
}
.ld-aux-row a:hover {
    color: #006eff;
}
.ld-aux-row a.ld-link-blue {
    color: #006eff;
    font-weight: 600;
}

.ld-agree {
    display: flex;
    align-items: center;
    font-size: 12px;
    color: #8b95a1;
    margin-bottom: 14px;
}
.ld-agree input[type=checkbox] {
    margin: 0 7px 0 0;
    accent-color: #006eff;
}
.ld-agree a {
    color: #006eff;
}

.ld-btn {
    display: block;
    width: 100%;
    height: 48px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(90deg, #006eff 0%, #00c6ff 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(0, 110, 255, .3);
    transition: filter .2s, transform .2s, box-shadow .2s;
}
.ld-btn:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(0, 110, 255, .36);
}
.ld-btn:active {
    transform: translateY(0);
}

.ld-auth-switch {
    margin-top: 18px;
    text-align: center;
    font-size: 13px;
    color: #8b95a1;
}
.ld-auth-notice {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    margin: 18px 0 14px;
    padding: 10px 12px;
    font-size: 12px;
    line-height: 1.7;
    color: #3370c8;
    background: rgba(0, 110, 255, .07);
    border-left: 3px solid #006eff;
    border-radius: 8px;
}
.ld-auth-notice i {
    flex-shrink: 0;
    margin-top: 1px;
}
.night .ld-auth-notice {
    color: #7fa8d9;
    background: rgba(0, 110, 255, .1);
}
.ld-auth-switch a {
    color: #006eff;
    font-weight: 600;
}

.ld-auth-back {
    position: relative;
    z-index: 2;
    margin-top: 22px;
    font-size: 13px;
    color: #8b95a1;
}
.ld-auth-back a {
    color: #667080;
    transition: color .2s;
}
.ld-auth-back a:hover {
    color: #006eff;
}
.ld-auth-back a i {
    margin-left: 3px;
}

/* 消息提示容器（JS 填充） */
.ld-auth-form .zongcai-tips:empty {
    display: none;
}

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
    .ld-auth-card {
        grid-template-columns: 1fr;
        max-width: 460px;
    }
    .ld-auth-brand {
        display: none;
    }
    .ld-auth-form {
        padding: 34px 28px;
    }
}
@media (max-width: 480px) {
    .ld-auth-page {
        padding: 24px 12px;
    }
    .ld-auth-form {
        padding: 28px 20px;
    }
    .ld-auth-title h3 {
        font-size: 20px;
    }
}

/* ---------- 夜间模式 ---------- */
.night .ld-auth-page {
    background: #0e131a;
}
.night .ld-auth-page:before {
    background-image: linear-gradient(rgba(0, 110, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 110, 255, .07) 1px, transparent 1px);
}
.night .ld-auth-card {
    background: var(--ceo-ahbg);
    border-color: #1c232e;
}
.night .ld-auth-title h3 {
    color: #e8eef5;
}
.night .ld-auth-title p {
    color: #77869a;
}
.night .ld-field {
    background: var(--ceo-ahmk);
    border-color: #212a36;
}
.night .ld-field:focus-within {
    background: #101822;
    border-color: #006eff;
}
.night .ld-field input {
    color: #dbe5f0;
}
.night .ld-field > i {
    color: #5b7089;
}
.night .ld-oauth a {
    background: var(--ceo-ahmk);
    border-color: #212a36;
    color: #93a0af;
}
.night .ld-aux-row a {
    color: #77869a;
}
.night .ld-auth-switch,
.night .ld-auth-back {
    color: #77869a;
}
.night .ld-auth-back a {
    color: #93a0af;
}
.night .ld-auth-divider:before,
.night .ld-auth-divider:after {
    background: #212a36;
}
