/**
 * 登录 / 注册 / 用户信息 弹窗样式
 * 毛玻璃风格，与主站视觉系统统一
 */

/* ========== 弹窗整体 —— 毛玻璃风格 ========== */
.login-dialog .el-dialog {
    background: rgba(255, 255, 255, 0.72) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border: 1px solid rgba(255, 255, 255, 0.55) !important;
    border-radius: 20px !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14) !important;
    overflow: hidden;
}

.login-dialog .el-dialog__header {
    padding: 14px 20px 0;
    border-bottom: none;
    background: transparent;
}

.login-dialog .el-dialog__title {
    font-size: 14px;
    font-weight: 500;
    color: #666;
}

.login-dialog .el-dialog__headerbtn .el-dialog__close {
    color: #999;
}

.login-dialog .el-dialog__body {
    padding: 10px 24px 24px;
    background: transparent;
}

/* 大标题 */
.login-dialog h2 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 22px;
    letter-spacing: 0.5px;
}

/* ========== 无标签大圆角输入框 ========== */
.login-input.el-input .el-input__wrapper,
.login-dialog .login-input .el-input__wrapper {
    border-radius: 12px !important;
    height: 48px !important;
    background: rgba(245, 247, 250, 0.8) !important;
    box-shadow: none !important;
    border: 1.5px solid rgba(0, 0, 0, 0.08) !important;
    transition: all 0.2s !important;
    padding: 0 16px !important;
}

.login-input.el-input .el-input__wrapper:hover,
.login-dialog .login-input .el-input__wrapper:hover {
    border-color: rgba(74, 141, 224, 0.4) !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

.login-input.el-input .el-input__wrapper.is-focus,
.login-dialog .login-input.el-input .el-input__wrapper.is-focus {
    border-color: #4a8de0 !important;
    background: #fff !important;
    box-shadow: 0 0 0 3px rgba(74, 141, 224, 0.12) !important;
}

.login-input.el-input .el-input__inner {
    font-size: 15px !important;
    height: 48px !important;
    line-height: 48px !important;
}

/* ========== 登录 / 注册 按钮 ========== */
.login-submit-btn.el-button,
.login-dialog .login-submit-btn {
    width: 100%;
    height: 48px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 12px !important;
    letter-spacing: 3px;
    background: #4a8de0 !important;
    border: none !important;
    box-shadow: 0 4px 14px rgba(74, 141, 224, 0.35) !important;
    transition: all 0.2s !important;
}

.login-submit-btn.el-button:hover {
    background: #3a7bd5 !important;
    box-shadow: 0 6px 18px rgba(74, 141, 224, 0.45) !important;
    transform: translateY(-1px);
}

/* ========== 底部链接 ========== */
.login-footer-link {
    text-align: center;
    margin-top: 16px;
    font-size: 13.5px;
    color: #999;
}

.login-footer-link a {
    color: #4a8de0;
    text-decoration: none;
    font-weight: 500;
}

.login-footer-link a:hover {
    text-decoration: underline;
}

/* ========== 用户信息面板 ========== */
.user-info-panel {
    padding: 4px 0;
}

.user-info-avatar {
    text-align: center;
    margin-bottom: 18px;
}

.user-info-avatar .el-avatar {
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.user-info-descriptions {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* 覆盖 Element Plus 带边框表格的 label 灰底变量 */
    --el-descriptions-item-bordered-label-background: transparent;
}

.user-info-descriptions .el-descriptions__body {
    background: transparent;
}

.user-info-descriptions .el-descriptions__label {
    width: 80px;
    font-weight: 500;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
}

.user-info-descriptions .el-descriptions__content {
    color: #222;
    background: transparent;
}

.user-info-descriptions td,
.user-info-descriptions th {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.user-info-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.user-info-actions .el-button {
    flex: 1;
    border-radius: 10px !important;
    height: 40px !important;
    font-size: 14px !important;
}

/* ========== 深色模式 ========== */
body.dark .login-dialog .el-dialog {
    background: rgba(28, 32, 44, 0.88) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

body.dark .login-dialog h2 {
    color: #e8eaf0;
}

body.dark .login-dialog .el-dialog__headerbtn .el-dialog__close {
    color: #777;
}

body.dark .login-input.el-input .el-input__wrapper,
body.dark .login-dialog .login-input .el-input__wrapper {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark .login-input.el-input .el-input__wrapper:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: rgba(74, 141, 224, 0.4) !important;
}

body.dark .login-input.el-input .el-input__wrapper.is-focus {
    background: rgba(74, 141, 224, 0.08) !important;
    border-color: #4a8de0 !important;
}

body.dark .login-input.el-input .el-input__inner {
    color: #e8eaf0 !important;
}

body.dark .login-footer-link {
    color: #666;
}

body.dark .user-info-avatar .el-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark .user-info-descriptions {
    --el-descriptions-item-bordered-label-background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .user-info-descriptions .el-descriptions__label {
    color: #aaa;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark .user-info-descriptions .el-descriptions__content {
    color: #ddd;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== 手机端 ========== */
@media (max-width: 768px) {
    .login-dialog .el-dialog__body {
        padding: 8px 18px 20px;
    }

    .login-dialog h2 {
        font-size: 20px;
        margin-bottom: 18px;
    }

    .login-input.el-input .el-input__wrapper {
        height: 44px !important;
    }

    .login-input.el-input .el-input__inner {
        height: 44px !important;
        font-size: 14.5px !important;
    }

    .login-submit-btn.el-button {
        height: 44px !important;
    }

    .user-info-avatar .el-avatar {
        width: 68px !important;
        height: 68px !important;
    }

    .user-info-descriptions .el-descriptions__label {
        width: 65px;
        font-size: 13px;
    }
}

.login-dialog .el-dialog__header {
    padding: 20px 22px 14px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    background: transparent;
}

.login-dialog .el-dialog__title {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a2e;
}

.login-dialog .el-dialog__headerbtn .el-dialog__close {
    color: #888;
}

.login-dialog .el-dialog__body {
    padding: 22px;
    background: transparent;
}

/* ========== 输入框 ========== */
.login-dialog .el-form-item__label {
    font-size: 13px;
    font-weight: 500;
    color: #444;
    padding-bottom: 5px;
}

.login-dialog .el-input__wrapper {
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.55) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1) inset !important;
    transition: all 0.2s;
}

.login-dialog .el-input__wrapper:hover {
    background: rgba(255, 255, 255, 0.75) !important;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18) inset !important;
}

.login-dialog .el-input__wrapper.is-focus,
.login-dialog .el-input.is-focus .el-input__wrapper {
    background: rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 0 1.5px #4a8de0 inset !important;
}

.login-dialog .el-input__inner {
    font-size: 14.5px;
    color: #222;
    background: transparent;
}

.login-dialog .el-input__prefix-inner .el-icon {
    color: #999;
}

/* ========== 登录 / 注册 按钮 ========== */
.login-dialog .el-button--primary,
.login-dialog .el-dialog__body .el-button--primary {
    width: 100%;
    height: 42px !important;
    font-size: 15px !important;
    font-weight: 500;
    border-radius: 10px !important;
    background: rgba(43, 111, 207, 0.85) !important;
    border: 1px solid rgba(43, 111, 207, 0.4) !important;
    box-shadow: 0 4px 14px rgba(43, 111, 207, 0.25);
    letter-spacing: 2px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all 0.2s !important;
}

.login-dialog .el-button--primary:hover,
.login-dialog .el-dialog__body .el-button--primary:hover {
    background: rgba(43, 111, 207, 1) !important;
    box-shadow: 0 6px 18px rgba(43, 111, 207, 0.4) !important;
    transform: translateY(-1px);
}

.login-dialog .el-button--primary:active {
    transform: translateY(0) !important;
}

/* ========== 用户信息面板 ========== */
.user-info-panel {
    padding: 4px 0;
}

.user-info-avatar {
    text-align: center;
    margin-bottom: 18px;
}

.user-info-avatar .el-avatar {
    border: 3px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.user-info-descriptions {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    /* 覆盖 Element Plus 带边框表格的 label 灰底变量 */
    --el-descriptions-item-bordered-label-background: transparent;
}

.user-info-descriptions .el-descriptions__body {
    background: transparent;
}

.user-info-descriptions .el-descriptions__label {
    width: 80px;
    font-weight: 500;
    color: #666;
    background: rgba(0, 0, 0, 0.03);
}

.user-info-descriptions .el-descriptions__content {
    color: #222;
    background: transparent;
}

.user-info-descriptions td,
.user-info-descriptions th {
    border-color: rgba(0, 0, 0, 0.08) !important;
}

.user-info-actions {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.user-info-actions .el-button {
    flex: 1;
    border-radius: 10px !important;
    height: 40px !important;
    font-size: 14px !important;
    backdrop-filter: blur(8px);
}

/* ========== 深色模式 ========== */
body.dark .login-dialog .el-dialog {
    background: rgba(28, 32, 44, 0.82) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5) !important;
}

body.dark .login-dialog .el-dialog__header {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

body.dark .login-dialog .el-dialog__title {
    color: #e8eaf0;
}

body.dark .login-dialog .el-dialog__headerbtn .el-dialog__close {
    color: #888;
}

body.dark .login-dialog .el-dialog__body {
    background: transparent;
}

body.dark .login-dialog .el-form-item__label {
    color: #aab0c0;
}

body.dark .login-dialog .el-input__wrapper {
    background: rgba(255, 255, 255, 0.06) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

body.dark .login-dialog .el-input__wrapper:hover {
    background: rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset !important;
}

body.dark .login-dialog .el-input__wrapper.is-focus {
    background: rgba(74, 141, 224, 0.08) !important;
    box-shadow: 0 0 0 1.5px #4a8de0 inset !important;
}

body.dark .login-dialog .el-input__inner {
    color: #e8eaf0;
}

body.dark .login-dialog .el-input__prefix-inner .el-icon {
    color: #7a8499;
}

body.dark .user-info-avatar .el-avatar {
    border-color: rgba(255, 255, 255, 0.15);
}

body.dark .user-info-descriptions {
    --el-descriptions-item-bordered-label-background: transparent;
    border-color: rgba(255, 255, 255, 0.1);
}

body.dark .user-info-descriptions .el-descriptions__label {
    color: #aaa;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark .user-info-descriptions .el-descriptions__content {
    color: #ddd;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

body.dark .user-info-descriptions td,
body.dark .user-info-descriptions th {
    border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ========== 手机端 ========== */
@media (max-width: 768px) {
    .login-dialog .el-dialog__header {
        padding: 16px 18px 12px;
    }

    .login-dialog .el-dialog__body {
        padding: 16px 18px;
    }

    .user-info-avatar .el-avatar {
        width: 68px !important;
        height: 68px !important;
    }

    .user-info-descriptions .el-descriptions__label {
        width: 65px;
        font-size: 13px;
    }

    .user-info-descriptions .el-descriptions__content {
        font-size: 13px;
    }

    .login-dialog .el-button--primary {
        height: 42px !important;
        font-size: 14.5px !important;
    }
}
