/* --------------------------------------------------------------------------
   5.6 Login Logs - 登录日志
   -------------------------------------------------------------------------- */

/* 登录日志 */
.uap-login-logs {
    width: 100%;
}

.uap-logs-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #374151;
}

/* 新版卡片式登录日志 */
.uap-logs-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.uap-log-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.uap-log-item:hover {
    border-color: #e5e7eb;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.uap-log-item.success {
    border-left: 3px solid #10b981;
}

.uap-log-item.failed {
    border-left: 3px solid #ef4444;
}

.uap-log-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f3f4f6;
    color: #6b7280;
}

.uap-log-icon.social {
    background: var(--uap-primary-bg);
    color: var(--uap-action-bg, #4f46e5);
}

.uap-log-icon.reset {
    background: #fef3c7;
    color: #d97706;
}

.uap-log-icon.key {
    background: #f3f4f6;
    color: #6b7280;
}

.uap-log-info {
    flex: 1;
    min-width: 0;
}

.uap-log-main {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.uap-log-type {
    font-weight: 600;
    font-size: 14px;
    color: #1f2937;
}

.uap-log-status-badge {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.uap-log-status-badge.success {
    background: #ecfdf5;
    color: #059669;
}

.uap-log-status-badge.failed {
    background: #fef2f2;
    color: #dc2626;
}

.uap-log-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #9ca3af;
}

.uap-log-device {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.uap-log-time {
    white-space: nowrap;
}

.uap-log-time::before {
    content: '·';
    margin-right: 12px;
}

/* 无数据状态 */
.uap-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    color: #9ca3af;
    text-align: center;
}

.uap-no-data svg {
    margin-bottom: 12px;
    opacity: 0.5;
}

.uap-no-data p {
    margin: 0;
    font-size: 14px;
}

/* 旧版表格样式（保留兼容） */
.uap-logs-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

.uap-logs-table th,
.uap-logs-table td {
    padding: 14px 16px;
    text-align: left;
    font-size: 14px;
}

.uap-logs-table th {
    font-weight: 600;
    color: #6b7280;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.uap-logs-table th:first-child {
    border-radius: 8px 0 0 0;
}

.uap-logs-table th:last-child {
    border-radius: 0 8px 0 0;
}

.uap-logs-table td {
    border-bottom: 1px solid #f3f4f6;
    color: #4b5563;
}

.uap-logs-table tr:last-child td {
    border-bottom: none;
}

.uap-logs-table tr:hover td {
    background: #fafbfc;
}

.uap-log-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.uap-log-status.success {
    background: #ecfdf5;
    color: #059669;
}

.uap-log-status.failed {
    background: #fef2f2;
    color: #dc2626;
}

/* 响应式 */
@media (max-width: 640px) {

    /* 全屏模板响应式 */
    .uap-fullpage-wrapper {
        padding: 20px 16px;
        min-height: 100vh;
        align-items: flex-start;
        padding-top: 60px;
    }

    .uap-fullpage-content {
        max-width: 100%;
    }

    .uap-fullpage-wrapper .uap-form-container {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .uap-form-container {
        margin: 20px;
        padding: 24px;
    }

    .uap-uc-header {
        min-height: 160px;
        padding: 20px;
        justify-content: center;
    }

    .uap-uc-header-content {
        flex-direction: column;
        text-align: center;
    }

    .uap-uc-avatar img {
        width: 72px;
        height: 72px;
    }

    /* 手机端隐藏编辑图标，通过点击头像触发 */
    .uap-avatar-edit {
        display: none;
    }

    .uap-uc-avatar {
        cursor: pointer;
    }

    .uap-cover-edit {
        opacity: 1;
        transform: translateY(0);
        padding: 6px 12px;
        font-size: 12px;
    }

    .uap-cover-edit span {
        display: none;
    }

    .uap-uc-content {
        padding: 10px;
    }

    /* 社交账号绑定列表响应式 */
    .uap-bindlist-items {
        grid-template-columns: 1fr;
    }

    .uap-bind-item {
        padding: 14px;
        gap: 12px;
    }

    .uap-bind-icon {
        width: 40px;
        height: 40px;
        padding: 5px;
    }

    .uap-bind-actions {
        flex-direction: column;
        gap: 6px;
    }

    .uap-bind-btn {
        padding: 6px 12px;
        font-size: 12px;
        text-align: center;
    }

    .uap-logs-table {
        font-size: 12px;
    }

    .uap-logs-table th,
    .uap-logs-table td {
        padding: 10px 8px;
    }

    /* 登录日志响应式 */
    .uap-logs-list {
        gap: 8px;
    }

    .uap-log-item {
        padding: 12px 14px;
        gap: 12px;
    }

    .uap-log-icon {
        width: 36px;
        height: 36px;
    }

    .uap-log-icon svg {
        width: 18px;
        height: 18px;
    }

    .uap-log-type {
        font-size: 13px;
    }

    .uap-log-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .uap-log-time::before {
        display: none;
    }

    .uap-log-device {
        max-width: 100%;
    }

    .uap-no-data {
        padding: 32px 16px;
    }
}

