/* 优象认证系统样式 */
.uxauth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    padding: 24px;
}

.uxauth-card {
    width: 100%;
    max-width: 420px;
    background: #1e293b;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
}

.uxauth-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

.uxauth-modal.is-active {
    display: flex;
}

.uxauth-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.uxauth-modal-content {
    position: relative;
    max-width: 420px;
    width: 90%;
    background: #1e293b;
    border-radius: 12px;
    padding: 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    border: 1px solid #334155;
}

.uxauth-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    padding: 4px 8px;
    transition: color 0.2s;
}

.uxauth-close:hover {
    color: #fff;
}

.uxauth-title {
    margin: 0 0 24px;
    color: #fff;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.uxauth-message {
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    display: none;
}

.uxauth-message.show {
    display: block;
}

.uxauth-message.error {
    background: #fee;
    color: #c00;
    border: 1px solid #fcc;
}

.uxauth-message.success {
    background: #efe;
    color: #080;
    border: 1px solid #cfc;
}

.uxauth-field {
    margin-bottom: 16px;
}

.uxauth-field label {
    display: block;
    margin-bottom: 6px;
    color: #cbd5e1;
    font-size: 14px;
    font-weight: 500;
}

.uxauth-field input[type="text"],
.uxauth-field input[type="email"],
.uxauth-field input[type="password"] {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #475569;
    border-radius: 8px;
    background: #0f172a;
    color: #e2e8f0;
    font-size: 14px;
    transition: all 0.2s;
}

.uxauth-field input:focus {
    outline: none;
    border-color: #6366f1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.uxauth-code-group {
    display: flex;
    gap: 8px;
}

.uxauth-code-group input {
    flex: 1;
}

.uxauth-btn-code {
    padding: 10px 16px;
    background: #475569;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.uxauth-btn-code:hover {
    background: #64748b;
}

.uxauth-btn-code:disabled {
    background: #334155;
    cursor: not-allowed;
    opacity: 0.6;
}

.uxauth-field-inline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 14px;
}

.uxauth-field-inline label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #cbd5e1;
    cursor: pointer;
}

.uxauth-field-inline input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.uxauth-btn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.uxauth-btn-primary {
    background: #6366f1;
    color: #fff;
}

.uxauth-btn-primary:hover {
    background: #4f46e5;
}

.uxauth-btn-wechat {
    background: #07c160;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.uxauth-btn-wechat:hover {
    background: #06ad56;
}

.uxauth-divider {
    margin: 20px 0;
    text-align: center;
    position: relative;
}

.uxauth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #475569;
}

.uxauth-divider span {
    position: relative;
    padding: 0 12px;
    background: #1e293b;
    color: #94a3b8;
    font-size: 13px;
}

.uxauth-footer {
    margin-top: 20px;
    text-align: center;
    color: #94a3b8;
    font-size: 14px;
}

.uxauth-link {
    color: #6366f1;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    font-size: inherit;
    padding: 0;
}

.uxauth-link:hover {
    color: #818cf8;
    text-decoration: underline;
}

/* 语言选择器样式 */
.uxauth-language-toggle {
    cursor: pointer;
    padding: 12px 16px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: none;
    color: #cbd5e1;
    font-size: 14px;
    width: 100%;
    text-align: left;
    border-radius: 8px;
}

.uxauth-language-toggle:hover {
    background-color: #334155;
    color: #fff;
}

.uxauth-language-toggle svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.uxauth-language-toggle .arrow {
    margin-left: auto;
    transition: transform 0.2s;
}

.uxauth-language-toggle.active .arrow {
    transform: rotate(180deg);
}

.uxauth-language-selector {
    max-height: 180px;
    overflow-y: auto;
    display: none;
    flex-direction: column;
    gap: 2px;
    padding: 0 8px;
    margin-top: 4px;
}

.uxauth-language-selector.hidden {
    display: none !important;
}

.uxauth-language-selector.show {
    display: flex !important;
}

.uxauth-language-selector a.glink,
.uxauth-language-selector a.gt-current-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    color: #cbd5e1;
    font-size: 0.875rem;
    transition: all 0.15s ease;
}

.uxauth-language-selector a.glink:hover,
.uxauth-language-selector a.gt-current-wrapper:hover {
    background-color: #334155;
    color: #fff;
}

.uxauth-language-selector a.glink.gt-current-lang,
.uxauth-language-selector a.gt-current-wrapper.gt-current-lang {
    background-color: #3730a3;
    color: #fff;
    font-weight: 600;
}

.uxauth-language-selector a.glink img,
.uxauth-language-selector a.gt-current-wrapper img {
    width: 18px;
    height: 18px;
    border-radius: 2px;
    flex-shrink: 0;
}

.uxauth-language-selector a.glink span,
.uxauth-language-selector a.gt-current-wrapper span {
    flex: 1;
}

/* 语言选择器滚动条样式 */
.uxauth-language-selector::-webkit-scrollbar {
    width: 6px;
}

.uxauth-language-selector::-webkit-scrollbar-track {
    background: #1e293b;
    border-radius: 3px;
}

.uxauth-language-selector::-webkit-scrollbar-thumb {
    background: #475569;
    border-radius: 3px;
}

.uxauth-language-selector::-webkit-scrollbar-thumb:hover {
    background: #64748b;
}

.uxauth-language-wrapper {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #334155;
}

/* 微信登录二维码样式 */
#wechatQRContainer {
    display: none;
}

#wechatQRWrapper {
    text-align: center;
    padding: 20px;
}

#wechatQRCode {
    display: inline-block;
    position: relative;
    width: 220px;
    height: 220px;
    background: #fff;
    border-radius: 8px;
    padding: 10px;
    margin: 0 auto 10px;
}

#wechatQRImage {
    width: 200px;
    height: 200px;
    display: block;
}

#wechatQRLoading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
    font-size: 14px;
}

.qr-tips {
    color: #94a3b8;
    font-size: 14px;
    margin: 10px 0 0;
}

/* 响应式 */
@media (max-width: 480px) {
    .uxauth-modal-content {
        margin: 20px;
        padding: 24px;
    }
    
    #wechatQRCode {
        width: 180px;
        height: 180px;
    }
    
    #wechatQRImage {
        width: 160px;
        height: 160px;
    }
}
